|
1 | 1 | name: Deploy pages production |
2 | | -'on': |
| 2 | +"on": |
3 | 3 | push: |
4 | 4 | tags: |
5 | | - - '*' |
6 | | - - '!*-*' |
| 5 | + - "*" |
| 6 | + - "!*-*" |
7 | 7 | workflow_dispatch: {} |
8 | 8 | jobs: |
9 | 9 | job: |
10 | 10 | name: Github Pages Production |
11 | 11 | runs-on: ubuntu-22.04 |
12 | 12 | steps: |
13 | | - - name: Install Autogit |
14 | | - uses: darklab8/infra/.github/actions/install-autogit@master |
15 | | - - name: Check out source repository with commits history |
16 | | - uses: actions/checkout@v4 |
17 | | - with: |
18 | | - fetch-depth: 0 |
19 | | - - name: Install Go |
20 | | - uses: darklab8/infra/.github/actions/install-go@master |
21 | | - - name: Install Taskfile |
22 | | - uses: darklab8/infra/.github/actions/install-taskfile@master |
23 | | - - name: Install Templ |
24 | | - uses: darklab8/infra/.github/actions/install-templ@master |
25 | | - - name: generate Templ files |
26 | | - run: templ generate |
27 | | - - name: Install Swag |
28 | | - uses: darklab8/infra/.github/actions/install-swag@master |
29 | | - - name: Build swag go stuff |
30 | | - run: swag init --parseDependency |
31 | | - - name: add versions |
32 | | - run: task build-version |
33 | | - - name: Write version from tag |
34 | | - run: echo "${{ steps.version.outputs.BUILD_VERSION }}" > darkstat/settings/version.txt |
35 | | - - name: Build Binaries |
36 | | - run: task build:bins_only |
37 | | - - name: Get version from tag |
38 | | - run: | |
39 | | - set -x |
40 | | - echo "BUILD_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT |
41 | | - id: version |
42 | | - - name: Print release changelog |
43 | | - run: | |
44 | | - echo 'artifact<<EOF' >> $GITHUB_OUTPUT |
45 | | - autogit changelog --override ${{ steps.version.outputs.BUILD_VERSION }} >> "$GITHUB_OUTPUT" |
46 | | - echo 'EOF' >> $GITHUB_OUTPUT |
47 | | - id: changelog |
48 | | - - name: upload binaries to release |
49 | | - if: ${{startsWith(github.ref, 'refs/tags/') }} |
50 | | - uses: softprops/action-gh-release@v2 |
51 | | - with: |
52 | | - body: ${{ steps.changelog.outputs.artifact }} |
53 | | - files: | |
54 | | - dist/darkstat-linux-amd64 |
55 | | - dist/darkstat-linux-arm64 |
56 | | - dist/darkstat-macos-amd64 |
57 | | - dist/darkstat-macos-arm64 |
58 | | - dist/darkstat-windows-amd64.exe |
59 | | - dist/darkstat-windows-arm64.exe |
60 | | - - name: Repository Dispatch for Vanilla |
61 | | - uses: darklab8/infra/.github/actions/trigger-workflow@master |
62 | | - with: |
63 | | - token: ${{ secrets.FL_DATA_KEY }} |
64 | | - repository: darklab8/fl-data-vanilla |
65 | | - workflow-file: publish.yaml |
66 | | - - name: Repository Dispatch for Discovery |
67 | | - uses: darklab8/infra/.github/actions/trigger-workflow@master |
68 | | - with: |
69 | | - token: ${{ secrets.FL_DATA_KEY }} |
70 | | - repository: darklab8/fl-data-discovery |
71 | | - workflow-file: publish.yaml |
72 | | - - name: Repository Dispatch for FLSR |
73 | | - uses: darklab8/infra/.github/actions/trigger-workflow@master |
74 | | - with: |
75 | | - token: ${{ secrets.FL_DATA_KEY }} |
76 | | - repository: darklab8/fl-data-flsr |
77 | | - workflow-file: publish.yaml |
| 13 | + - name: Install Autogit |
| 14 | + uses: darklab8/infra/.github/actions/install-autogit@master |
| 15 | + - name: Check out source repository with commits history |
| 16 | + uses: actions/checkout@v4 |
| 17 | + with: |
| 18 | + fetch-depth: 0 |
| 19 | + - name: Install Go |
| 20 | + uses: darklab8/infra/.github/actions/install-go@master |
| 21 | + - name: Install Taskfile |
| 22 | + uses: darklab8/infra/.github/actions/install-taskfile@master |
| 23 | + - name: Install Templ |
| 24 | + uses: darklab8/infra/.github/actions/install-templ@master |
| 25 | + - name: generate Templ files |
| 26 | + run: templ generate |
| 27 | + - name: Install Swag |
| 28 | + uses: darklab8/infra/.github/actions/install-swag@master |
| 29 | + - name: Build swag go stuff |
| 30 | + run: swag init --parseDependency |
| 31 | + - name: add versions |
| 32 | + run: task build-version |
| 33 | + - name: Write version from tag |
| 34 | + run: echo "${{ steps.version.outputs.BUILD_VERSION }}" > darkstat/settings/version.txt |
| 35 | + - name: Build Binaries |
| 36 | + run: task build:bins_only |
| 37 | + - name: Get version from tag |
| 38 | + run: | |
| 39 | + set -x |
| 40 | + echo "BUILD_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT |
| 41 | + id: version |
| 42 | + - name: Print release changelog |
| 43 | + run: | |
| 44 | + echo 'artifact<<EOF' >> $GITHUB_OUTPUT |
| 45 | + autogit changelog --override ${{ steps.version.outputs.BUILD_VERSION }} >> "$GITHUB_OUTPUT" |
| 46 | + echo 'EOF' >> $GITHUB_OUTPUT |
| 47 | + id: changelog |
| 48 | + - name: upload binaries to release |
| 49 | + if: ${{startsWith(github.ref, 'refs/tags/') }} |
| 50 | + uses: softprops/action-gh-release@v2 |
| 51 | + with: |
| 52 | + body: ${{ steps.changelog.outputs.artifact }} |
| 53 | + files: | |
| 54 | + dist/darkstat-linux-amd64 |
| 55 | + dist/darkstat-linux-arm64 |
| 56 | + dist/darkstat-macos-amd64 |
| 57 | + dist/darkstat-macos-arm64 |
| 58 | + dist/darkstat-windows-amd64.exe |
| 59 | + dist/darkstat-windows-arm64.exe |
| 60 | + - name: Repository Dispatch for FLSR |
| 61 | + uses: darklab8/infra/.github/actions/trigger-workflow@master |
| 62 | + with: |
| 63 | + token: ${{ secrets.FL_DATA_KEY }} |
| 64 | + repository: darklab8/fl-data-flsr |
| 65 | + workflow-file: publish.yaml |
| 66 | + - name: Repository Dispatch for Vanilla |
| 67 | + uses: darklab8/infra/.github/actions/trigger-workflow@master |
| 68 | + with: |
| 69 | + token: ${{ secrets.FL_DATA_KEY }} |
| 70 | + repository: darklab8/fl-data-vanilla |
| 71 | + workflow-file: publish.yaml |
| 72 | + - name: Repository Dispatch for Discovery |
| 73 | + uses: darklab8/infra/.github/actions/trigger-workflow@master |
| 74 | + with: |
| 75 | + token: ${{ secrets.FL_DATA_KEY }} |
| 76 | + repository: darklab8/fl-data-discovery |
| 77 | + workflow-file: publish.yaml |
0 commit comments