|
1 | 1 | name: PortMaster Release |
2 | 2 |
|
3 | 3 | on: |
4 | | - # We only run manually |
5 | 4 | workflow_dispatch: |
6 | 5 |
|
7 | | -concurrency: |
8 | | - group: release # only 1 release at a time |
9 | | - |
10 | 6 | jobs: |
11 | 7 | build: |
12 | | - runs-on: self-hosted |
| 8 | + runs-on: ubuntu-latest |
13 | 9 |
|
14 | 10 | steps: |
15 | | - - uses: hmarr/debug-action@v2 |
16 | | - name: "debug: ${{github.event_name}}" |
17 | | - |
18 | | - - name: env - better defaulting of env vars; |
19 | | - id: env |
20 | | - run: | |
21 | | - ~/git-scripts/PortMaster-New-Prepare.sh |
22 | | -
|
23 | | - - name: Get release name for artifacts |
24 | | - id: date |
25 | | - run: | |
26 | | - echo "date=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_OUTPUT |
27 | | -
|
28 | | - - name: Generate Port Files. |
29 | | - id: ports-info |
30 | | - run: | |
31 | | - ~/git-scripts/PortMaster-New-Build-Release.sh "${{steps.date.outputs.date}}" |
32 | | -
|
33 | | - ###################################################################### |
34 | | - ## Only run these if it is the PortMaster-New repo |
35 | | - - uses: robinraju/[email protected] |
36 | | - if: ${{ steps.env.outputs.RELEASE_REPO }} == "PortMaster-New" |
| 11 | + - name: Checkout Branch |
| 12 | + uses: actions/checkout@v4 |
37 | 13 | with: |
38 | | - out-file-path: "releases" |
39 | | - repository: "PortsMaster/PortMaster-GUI" |
40 | | - tag: "${{ steps.env.outputs.PMGUI_RELEASE }}" |
41 | | - fileName: "PortMaster.zip" |
42 | | - |
43 | | - ###################################################################### |
44 | | - |
45 | | - - name: "Prepare Release" |
46 | | - uses: ncipollo/release-action@v1 |
| 14 | + ref: Experimental |
| 15 | + sparse-checkout: | |
| 16 | + releases |
| 17 | + ports/cataclysm-dda/cataclysm-dda |
| 18 | + fetch-depth: 1 |
| 19 | + |
| 20 | + - name: Extract |
| 21 | + uses: ihiroky/extract-action@v1 |
47 | 22 | with: |
48 | | - tag: "${{steps.date.outputs.date}}" |
49 | | - allowUpdates: true |
50 | | - draft: true |
51 | | - prerelease: false |
52 | | - replacesArtifacts: false |
53 | | - omitNameDuringUpdate: true |
54 | | - artifacts: "releases/*" |
55 | | - token: ${{ secrets.GITHUB_TOKEN }} |
56 | | - repo: ${{ steps.env.outputs.RELEASE_REPO }} |
57 | | - owner: ${{ steps.env.outputs.RELEASE_ORG }} |
| 23 | + file_path: releases/cataclysm-tiles.zip |
| 24 | + extract_dir: ports/cataclysm-dda/cataclysm-dda |
| 25 | + verbose: true |
58 | 26 |
|
59 | | - - name: "Publish Release" |
60 | | - uses: ncipollo/release-action@v1 |
| 27 | + - name: Create Pull Request |
| 28 | + uses: peter-evans/create-pull-request@v7 |
61 | 29 | with: |
62 | | - tag: "${{steps.date.outputs.date}}" |
63 | | - omitBodyDuringUpdate: true |
64 | | - omitNameDuringUpdate: true |
65 | | - allowUpdates: true |
66 | | - draft: false |
67 | | - prerelease: false |
68 | | - token: ${{ secrets.GITHUB_TOKEN }} |
69 | | - repo: ${{ steps.env.outputs.RELEASE_REPO }} |
70 | | - owner: ${{ steps.env.outputs.RELEASE_ORG }} |
71 | | - |
72 | | - - name: Release Info |
73 | | - id: info |
74 | | - run: | |
75 | | - echo "Published release: ${{steps.date.outputs.date}} to: https://github.com/${{ steps.env.outputs.RELEASE_ORG}}/${{ steps.env.outputs.RELEASE_REPO}}" |
| 30 | + base: Experimental |
| 31 | + title: Update Binary |
| 32 | + add-paths: | |
| 33 | + ports/cataclysm-dda/cataclysm-dda |
0 commit comments