aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows/release.yaml
blob: cc3240ac3e6d143615d4b2dc5bf4c13a5a56288b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: release
on:
  push:
    tags:
      - "[0-9]+.[0-9]+.[0-9]+"
jobs:
  release:
    runs-on: [ubuntu-latest]
    steps:
    - name: Checkout repository
      uses: actions/checkout@v4
    - uses: dtolnay/rust-toolchain@nightly
    - name: Build
      run: cargo build --release
    - name: Create release
      id: create-release
      uses: https://git.d464.sh/actions/release@v1
      with:
        token: ${{ secrets.AUTH_TOKEN }}
        tag: ${{ github.ref_name }}
    - name: Upload assets 
      id: upload-assets
      uses: https://git.d464.sh/actions/upload-asset@v1
      with:
        token: ${{ secrets.AUTH_TOKEN }}
        release_id: ${{ steps.create-release.outputs.release_id }}
        paths: |
           target/release/zsnap