aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows/release.yaml
blob: 99462df1d1fa9c46aadf1b4f64fe4b2b27d96e5f (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
29
name: release
on:
  push:
    tags:
      - "[0-9]+.[0-9]+.[0-9]+*"
jobs:
  release:
    runs-on: [fedora-latest]
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4 
      - uses: dtolnay/rust-toolchain@nightly
      - name: Build
        run: VERSION=${{github.ref_name}} ./dist.sh
      - name: Create release
        id: create-release
        uses: https://git.d464.sh/actions/release@v1
        with:
          token: ${{ secrets.AUTH_TOKEN }}
          tag: ${{github.ref_name}}
          name: ${{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: |
            dist/*