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 4369d4c
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.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.GITHUB_TOKEN }}

0 comments on commit 4369d4c

Please sign in to comment.