Skip to content
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

ARTifacts #87

Draft
wants to merge 8 commits into
base: mainline
Choose a base branch
from
Draft
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ jobs:
uses: "actions/checkout@v2"
with:
fetch-depth: 1
- id: get_dependencies
# Ubuntu latest does not have wget or unzip installed by default
name: "Get dependencies"
run: |
sudo apt-get -y update
sudo apt-get -y install wget unzip
- id: fetch_artifacts
name: "fetch ARTifacts"
# Credit to https://gist.github.com/umohi/bfc7ad9a845fc10289c03d532e3d2c2f
# want to pin to tags for releases, but currently no tags in art to
# which to pin.
run: |
artifact=textures-latest
list_asset_url=https://api.github.com/repos/tribesthatmaybe/art_source/actions/artifacts
asset_url=$(curl "${list_asset_url}" | jq ".artifacts[] | select(.name==\"${artifact}\") | .url" | sed 's/\"//g')/zip
wget -O textures-latest.zip $asset_url/zip?access_token=${GITHUB_TOKEN}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try using ART_PAT but remember to declare it in the env section

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this pulls down the latest art assets right? we should figure out how to pin it
also been thinking about #85

Copy link
Contributor Author

@hunnybear hunnybear Sep 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's just textures for the time being. Thinking nightly/rolling builds pull latest and tag builds pull that tag from art-source (don't have anything tagged yet, should probably start prerelease tagging at this point), thought just having the tag to use as a variable somewhere works for me just fine.

Also thanks for the declaration reminder :D

unzip -od src/resources textures-latest.zip
- name: "generate config"
id: "configgen"
run: 'echo "twitch_token: ${{ secrets.CURSE_TOKEN }}" > config.yml'
Expand Down