Skip to content

Commit

Permalink
add new universal upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidArgument3 committed May 28, 2024
1 parent 831b2ef commit a7d4144
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/UniversalUpload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Aristeas UniversalUpload
on:
workflow_dispatch:
push:
branches:
- main

jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/[email protected]

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
separator: ','

#- name: List all changed files
# env:
# ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
# run: |
# for file in ${ALL_CHANGED_FILES}; do
# echo "$file was changed"
# done

- id: set-matrix
run: bash ModIdFinder.sh "${{ steps.changed-files.outputs.all_changed_files }}" >> $GITHUB_OUTPUT

workshop-upload:
needs: setup
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJSON(needs.setup.outputs.matrix) }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0

- name: Delay
run: sleep $((${{ strategy.job-index }} * 10))

- uses: AnarkisGaming/workshop@v1
with:
appID: 244850
login: true
publishedFileID: ${{ matrix.value }}
path: ${{ matrix.path }}
changelog: ${{ github.event.head_commit.message }}
env:
STEAM_ACCOUNT_NAME: ${{ secrets.accountname }}
STEAM_PASSWORD: ${{ secrets.password }}
Binary file added .github/workflows/workflows.zip
Binary file not shown.
Empty file.
Binary file added VisualStudioSLNs.zip
Binary file not shown.

0 comments on commit a7d4144

Please sign in to comment.