-
Notifications
You must be signed in to change notification settings - Fork 793
50 lines (47 loc) · 1.33 KB
/
release.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build and release
on:
push:
branches:
- main
paths:
- "**.rs"
- "Cargo.lock"
- "Cargo.toml"
tags-ignore:
- dev-build
env:
dev_tag: dev-build
jobs:
build:
uses: ./.github/workflows/build_artifacts.yml
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Downloads artifacts
uses: actions/download-artifact@v3
with:
path: bin
- name: Create pre-release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}/CHANGELOG.md
files: bin/*/uad_gui-*
prerelease: true
# - name: Update dev-build tag
# if: ${{ github.event_name == 'push' }}
# run: |
# git tag -d ${{ env.dev_tag }} || true
# git push origin :refs/tags/${{ env.dev_tag }} || true
# git tag ${{ env.dev_tag }}
# git push origin ${{ env.dev_tag }}
# - name: Create dev-build release
# if: ${{ github.event_name == 'push' }}
# uses: softprops/action-gh-release@v1
# with:
# generate_release_notes: true
# files: bin/*/uad_gui-*
# prerelease: true
# tag_name: ${{ env.dev_tag }}