mirror of
https://github.com/gmod-integration/lua.git
synced 2025-07-07 11:03:58 +00:00
fix: update Steam Workshop publishing steps and add preview file
This commit is contained in:
parent
704b57a745
commit
f1740caf77
15
.github/workflows/auto-release.yml
vendored
15
.github/workflows/auto-release.yml
vendored
|
@ -236,21 +236,17 @@ jobs:
|
||||||
needs: [build, version, changelog]
|
needs: [build, version, changelog]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# 1) Checkout your addon code
|
|
||||||
- name: Checkout gmod-integration
|
- name: Checkout gmod-integration
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# 2) Clone the uploader repo from the new HTTPS URL
|
|
||||||
- name: Clone gmod-workshop-cicd
|
- name: Clone gmod-workshop-cicd
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/linventif/gmod-workshop-cicd.git gmod-workshop-cicd
|
git clone https://github.com/linventif/gmod-workshop-cicd.git gmod-workshop-cicd
|
||||||
|
|
||||||
# 3) Build the uploader image from that repo
|
|
||||||
- name: Build gmod-uploader image
|
- name: Build gmod-uploader image
|
||||||
run: |
|
run: |
|
||||||
docker build -t gmod-uploader ./gmod-workshop-cicd
|
docker build -t gmod-uploader ./gmod-workshop-cicd
|
||||||
|
|
||||||
# 4) Generate Steam Guard OTP
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
@ -267,31 +263,32 @@ jobs:
|
||||||
echo "otp=$(python3 otp.py)" >> $GITHUB_OUTPUT
|
echo "otp=$(python3 otp.py)" >> $GITHUB_OUTPUT
|
||||||
working-directory: ${{ github.workspace }}/gmod-workshop-cicd
|
working-directory: ${{ github.workspace }}/gmod-workshop-cicd
|
||||||
|
|
||||||
# 5) Publish to Steam Workshop, with change notes from your GMod Store changelog
|
|
||||||
- name: Publish to Workshop
|
- name: Publish to Workshop
|
||||||
env:
|
env:
|
||||||
STEAM_SHARED_SECRET: ${{ secrets.STEAM_SHARED_SECRET }}
|
|
||||||
STEAM_USER: ${{ secrets.STEAM_USER }}
|
STEAM_USER: ${{ secrets.STEAM_USER }}
|
||||||
STEAM_PASS: ${{ secrets.STEAM_PASS }}
|
STEAM_PASS: ${{ secrets.STEAM_PASS }}
|
||||||
|
STEAM_SHARED_SECRET: ${{ secrets.STEAM_SHARED_SECRET }}
|
||||||
STEAM_GUARD: ${{ steps.steam_otp.outputs.otp }}
|
STEAM_GUARD: ${{ steps.steam_otp.outputs.otp }}
|
||||||
PUBLISHED_FILE_ID: ${{ secrets.GMOD_INTEGRATION_PUBLISHED_FILE_ID }}
|
PUBLISHED_FILE_ID: ${{ secrets.GMOD_INTEGRATION_PUBLISHED_FILE_ID }}
|
||||||
CONTENT_PATH: /data
|
CONTENT_PATH: /data
|
||||||
|
PREVIEW_FILE: /data/materials/gmod_integration/logo.png
|
||||||
TITLE: Gmod Integration v${{ needs.version.outputs.new_version }}
|
TITLE: Gmod Integration v${{ needs.version.outputs.new_version }}
|
||||||
DESCRIPTION: 'Workshop Content of gmod-integration.com – all information on the website.'
|
DESCRIPTION: Workshop Content of gmod-integration.com – all information on the website.
|
||||||
VISIBILITY: '0'
|
VISIBILITY: '0'
|
||||||
CHANGE_NOTE: |
|
CHANGE_NOTE: |
|
||||||
${{ needs.changelog.outputs.changelog }}
|
${{ needs.changelog.outputs.changelog }}
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-e STEAM_SHARED_SECRET \
|
|
||||||
-e STEAM_USER \
|
-e STEAM_USER \
|
||||||
-e STEAM_PASS \
|
-e STEAM_PASS \
|
||||||
|
-e STEAM_SHARED_SECRET \
|
||||||
-e STEAM_GUARD \
|
-e STEAM_GUARD \
|
||||||
-e CONTENT_PATH \
|
-e CONTENT_PATH \
|
||||||
|
-e PREVIEW_FILE \
|
||||||
-e TITLE \
|
-e TITLE \
|
||||||
-e DESCRIPTION \
|
-e DESCRIPTION \
|
||||||
-e VISIBILITY \
|
-e VISIBILITY \
|
||||||
-e CHANGE_NOTE \
|
-e CHANGE_NOTE \
|
||||||
-e PUBLISHED_FILE_ID \
|
-e PUBLISHED_FILE_ID \
|
||||||
-v ${{ github.workspace }}:/data \
|
-v ${{ github.workspace }}:/data:ro \
|
||||||
gmod-uploader
|
gmod-uploader
|
||||||
|
|
Loading…
Reference in New Issue
Block a user