-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This (should) add a static file to the Workshop version only that contains the current commit hash before the upload process, which is then used to check for updates like normal. Haven't been able to test this from start to finish yet, but we'll see how it goes once everything is ready for release.
- Loading branch information
1 parent
a8a7fa3
commit 62b809c
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Deploy to Workshop | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
if: github.repository == 'ACF-Team/ACF-3' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create Commit Version File | ||
shell: bash | ||
run: | | ||
mkdir data_static | ||
mkdir data_static/acf | ||
cat > data_static/acf/acf-3-version.txt | ||
${{ github.sha }} | ||
EOF | ||
|
||
- name: Upload to Workshop | ||
uses: CFC-Servers/gmod-upload@master | ||
with: | ||
id: whatever the ID ends up being | ||
changelog: "${{ github.event.head_commit.message }}" | ||
title: "[ACF-3] Armored Combat Framework" | ||
type: "tool" | ||
tag1: "build" | ||
tag2: "fun" | ||
tag3: "realism" | ||
env: | ||
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | ||
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters