Skip to content

Commit

Permalink
CI: Fix Continuous Release
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Oct 16, 2024
1 parent 45eeaac commit 13031c3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/actions/upload/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
description: Source location
required: false
default: package
github_token:
description: GitHub Token
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -45,9 +48,14 @@ runs:
shell: bash

- name: Create Continuous Release
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' && !github.event.pull_request.head.repo.fork }}
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' && inputs.github_token != '' }}
uses: softprops/action-gh-release@v2
with:
tag_name: latest
target_commitish: master
files: ${{ runner.temp }}/shadow_build_dir/${{ inputs.source }}/${{ inputs.artifact_name }}
name: "Continuous Release"
body: "This release is continuously updated with every commit to master."
draft: false
prerelease: true
files: |
${{ runner.temp }}/shadow_build_dir/${{ inputs.source }}/${{ inputs.artifact_name }}
token: ${{ inputs.github_token }}
1 change: 1 addition & 0 deletions .github/workflows/android-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,4 @@ jobs:
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
source: ''
github_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ jobs:
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
source: ''
github_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,4 @@ jobs:
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
source: 'package'
github_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,4 @@ jobs:
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
source: ''
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 13031c3

Please sign in to comment.