File: release.yml

package info (click to toggle)
sqlitebrowser 3.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,472 kB
  • sloc: cpp: 117,707; ansic: 2,143; yacc: 798; lex: 262; sh: 126; xml: 65; python: 27; makefile: 5
file content (49 lines) | stat: -rw-r--r-- 1,186 bytes parent folder | download
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
name: Release

on:
    workflow_call:

env:
  tag_name: "v3.13.1"

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Delete existing tag and release
        uses: dev-drprasad/delete-tag-and-release@v1.1
        with:
          delete_release: true
          github_token: ${{ secrets.GITHUB_TOKEN }}
          tag_name: ${{ env.tag_name }}

      - run: mkdir target

      - name: Download artifacts
        uses: actions/download-artifact@v4
        with:
          path: target

      - name: Clear artifacts
        uses: geekyeggo/delete-artifact@v5
        with:
          name: build-artifacts-*

      - name: Remove unsigned Windows build
        run: rm -rfv target/*unsigned*

      - run: find target -type f -exec mv -v {} target \;

      - name: Unarchive Windows's build artifacts
        run: for f in target/*.zip; do unzip -d target/ "$f"; done

      - name: Remove archived Windows's build artifacts
        run: rm -v target/build-artifacts-*.zip

      - name: Release
        uses: softprops/action-gh-release@v2
        with:
          files: target/*
          draft: true
          prerelease: true
          tag_name: ${{ env.tag_name }}