Skip to content

Commit

Permalink
Test release
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 committed Mar 8, 2024
1 parent 0e4a713 commit 45b050f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
branches: [ "dev" ] # test
# branches: [ "main" ]
# tags: [ "**" ]

jobs:
build:
uses: ./.github/workflows/build.yml
release:
needs: build
permissions:
# write permission is required to create a github release
contents: write
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
- name: Unpack artifact
run: |
unzip -qp hath-rust-x86_64-unknown-linux-gnu.zip > hath-rust-x86_64-unknown-linux-gnu
unzip -qp hath-rust-aarch64-unknown-linux-gnu.zip > hath-rust-aarch64-unknown-linux-gnu
unzip -qp hath-rust-armv7-unknown-linux-gnueabihf.zip > hath-rust-armv7-unknown-linux-gnueabihf
unzip -qp hath-rust-x86_64-pc-windows-msvc.zip > hath-rust-x86_64-pc-windows-msvc.exe
unzip -qp hath-rust-i686-pc-windows-msvc.zip > hath-rust-i686-pc-windows-msvc.exe
unzip -qp hath-rust-universal-apple-darwin.zip > hath-rust-universal-apple-darwin
- name: Create release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
files: |
hath-rust-x86_64-unknown-linux-gnu
hath-rust-aarch64-unknown-linux-gnu
hath-rust-armv7-unknown-linux-gnueabihf
hath-rust-x86_64-pc-windows-msvc.exe
hath-rust-i686-pc-windows-msvc.exe
hath-rust-universal-apple-darwin

0 comments on commit 45b050f

Please sign in to comment.