Skip to content

Commit

Permalink
try release
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalEugene committed Jul 26, 2024
1 parent 77b2ced commit 10023e2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 40 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Lint

on:
push:
branches:
Expand All @@ -14,20 +16,3 @@ jobs:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1

release:
name: Upload to GitHub Release
needs:
- lint
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--generate-notes
23 changes: 0 additions & 23 deletions .github/workflows/post-realese.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compile
id: compile
uses: rust-build/rust-build.action@v1.4.5
with:
RUSTTARGET: x86_64-unknown-linux-musl
ARCHIVE_TYPES: tar.gz tar.xz tar.zst
UPLOAD_MODE: none
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}
- name: Release
uses: softprops/action-gh-release@v2

0 comments on commit 10023e2

Please sign in to comment.