From 274691dca4eac818fe73af6d05e346cbf7bef32c Mon Sep 17 00:00:00 2001 From: Yamaguchi Date: Sun, 28 Apr 2024 03:28:31 +0900 Subject: [PATCH 1/3] Add Workflow file for Github Actions --- .github/workflows/{rust.yml => push.yml} | 0 .github/workflows/release.yml | 27 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) rename .github/workflows/{rust.yml => push.yml} (100%) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/push.yml similarity index 100% rename from .github/workflows/rust.yml rename to .github/workflows/push.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f38b578 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release + +permissions: + contents: write + +on: + push: + tags: + - 'v*' + +jobs: + upload-binary: + 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: esplora-tapyrus-$tag-${{ matrix.target }} + include: LICENSE,README.md,RELEASE-NOTES.md + token: ${{ secrets.MY_GITHUB_TOKEN }} From 247690e3ba06cb9fa5785ac68c3809ad66e6de35 Mon Sep 17 00:00:00 2001 From: Yamaguchi Date: Tue, 30 Apr 2024 14:46:00 +0900 Subject: [PATCH 2/3] 'leading-dir' option should be true --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f38b578..d5ddcd1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,7 @@ jobs: with: target: ${{ matrix.target }} bin: electrs + leading-dir: true archive: esplora-tapyrus-$tag-${{ matrix.target }} include: LICENSE,README.md,RELEASE-NOTES.md token: ${{ secrets.MY_GITHUB_TOKEN }} From ac5414b669c3ab68e9df7dc3ef98962976138328 Mon Sep 17 00:00:00 2001 From: Yamaguchi Date: Tue, 30 Apr 2024 17:14:05 +0900 Subject: [PATCH 3/3] Change target os --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5ddcd1..fb27cff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: matrix: include: - target: x86_64-unknown-linux-gnu - os: ubuntu-latest + os: ubuntu-20.04 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4