-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we deploy to Steam without uploading and downloading the artifact to Github? #59
Comments
Could you elaborate a bit more on what you're trying to do exactly? |
Hey, im using self hosted Linux and I want not to upload and download artifact from GitHub to save money. Basically my builds are 10-15gb and I prefer to upload to Steam directly. |
You have a few options here:
|
So here's set of actions that I created, what should I change to accomplish the first point? self-hosted, the same machine builds and deploys.
|
Instead of splitting into 2 jobs, you could run everything on the same job? |
Just wanted to add my solution to this thread. I'm actually creating a Github Release before I build my app, and then uploading the build assets to the release. Then I download the assets to the new runner when it's time to publish to Steam. It turns out to be much faster than uploading/downloading artefacts, too. Here's an example workflow (this is untested pseudocode - you'll need to update for your situation, e.g. some of these actions may not work on Windows runners): name: Publish
on:
push:
branches:
- main
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create a Release
uses: mini-bomba/[email protected]
with:
body: BUILD_VERSION
name: BUILD_VERSION
tag: BUILD_VERSION
token: ${{ secrets.GITHUB_TOKEN }}
create-build:
runs-on: ubuntu-latest
steps:
- name: Build Your Game Here
run: echo 'Nothing to see here.'
- name: Upload Assets to the Release
uses: mini-bomba/[email protected]
with:
body: BUILD_VERSION
files: |
build/*.exe
name: BUILD_VERSION
tag: BUILD_VERSION
token: ${{ secrets.GITHUB_TOKEN }}
publish-to-steam:
runs-on: ubuntu-latest
steps:
- name: Download Assets from Release
uses: robinraju/[email protected]
with:
fileName: builds
out-file-path: artifacts
repository: ${{ github.repository }}
tag: BUILD_VERSION
token: ${{ github.token }}
- name: Publish to Steam
uses: game-ci/steam-deploy@v3
with:
username: ${{ env.STEAM_BUILD_USERNAME }}
configVdf: ${{ env.STEAM_CONFIG_VDF }}
appId: ${{ env.STEAM_APP_ID }}
buildDescription: BUILD_VERSION
rootPath: builds
depot1Path: .
releaseBranch: prerelease |
Basically I want to save money because each GB counts on Github. How to configure so that I don't upload and download the artifact?
The text was updated successfully, but these errors were encountered: