Skip to content

Commit

Permalink
Add Workflow file for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamaguchi committed Apr 27, 2024
1 parent 81a08c8 commit c451f07
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
File renamed without changes.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- 'v*'

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (optional) Path to changelog.
changelog: RELEASE-NOTES.md
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.MY_GITHUB_TOKEN }}

upload-assets:
needs: create-release
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
target: ${{ matrix.target }}
bin: electrs
archive: $bin-$tag-${{ matrix.target }}
include: LICENSE,README.md,RELEASE-NOTES.md
token: ${{ secrets.MY_GITHUB_TOKEN }}

0 comments on commit c451f07

Please sign in to comment.