Skip to content

Commit 13031c3

Browse files
committed
CI: Fix Continuous Release
1 parent 45eeaac commit 13031c3

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

.github/actions/upload/action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
description: Source location
1515
required: false
1616
default: package
17+
github_token:
18+
description: GitHub Token
19+
required: false
1720

1821
runs:
1922
using: "composite"
@@ -45,9 +48,14 @@ runs:
4548
shell: bash
4649

4750
- name: Create Continuous Release
48-
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' && !github.event.pull_request.head.repo.fork }}
51+
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' && inputs.github_token != '' }}
4952
uses: softprops/action-gh-release@v2
5053
with:
54+
tag_name: latest
55+
target_commitish: master
56+
files: ${{ runner.temp }}/shadow_build_dir/${{ inputs.source }}/${{ inputs.artifact_name }}
57+
name: "Continuous Release"
58+
body: "This release is continuously updated with every commit to master."
59+
draft: false
5160
prerelease: true
52-
files: |
53-
${{ runner.temp }}/shadow_build_dir/${{ inputs.source }}/${{ inputs.artifact_name }}
61+
token: ${{ inputs.github_token }}

.github/workflows/android-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,4 @@ jobs:
9999
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
100100
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
101101
source: ''
102+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ jobs:
138138
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
139139
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
140140
source: ''
141+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,4 @@ jobs:
113113
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
114114
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
115115
source: 'package'
116+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,4 @@ jobs:
140140
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
141141
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
142142
source: ''
143+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)