Skip to content

Commit

Permalink
feat: add release workflow and rename build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmuente committed Sep 13, 2021
1 parent 8dd7783 commit ded02e5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions .github/workflows/release-please.yml
@@ -0,0 +1,14 @@
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: rust
package-name: release-please-action
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,20 @@
on:
release:
types: [created]

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/rust-build.action@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md LICENSE"

0 comments on commit ded02e5

Please sign in to comment.