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

New publish steps #17

Merged
merged 3 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
37 changes: 18 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,24 @@ jobs:
- name: Update Build Info
run: Tools/gen_build_info.py

- name: Shuffle files around
run: |
mkdir "release/${{ github.sha }}"
mv release/*.zip "release/${{ github.sha }}"

- name: Upload files to axolotl
uses: appleboy/scp-action@master
- name: Upload build artifact
id: artifact-upload-step
uses: actions/upload-artifact@v4
with:
host: axolotl.yuniiworks.de
username: builds-the-server
key: ${{ secrets.PUSH }}
source: "release/${{ github.sha }}"
target: "/home/builds-the-server/cdn/builds/"
strip_components: 1
name: build
path: release/*.zip
compression-level: 0
retention-days: 0

- name: Publish version
run: Tools/publish_github_artifact.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
ARTIFACT_ID: ${{ steps.artifact-upload-step.outputs.artifact-id }}
GITHUB_REPOSITORY: ${{ vars.GITHUB_REPOSITORY }}

- name: Update manifest JSON
uses: appleboy/ssh-action@master
- uses: geekyeggo/delete-artifact@v5
if: always()
with:
host: axolotl.yuniiworks.de
username: builds-the-server
key: ${{ secrets.PUSH }}
script: /home/builds-the-server/push.ps1 ${{ github.sha }}
name: build
4 changes: 2 additions & 2 deletions Tools/publish_github_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# CONFIGURATION PARAMETERS
# Forks should change these to publish to their own infrastructure.
#
ROBUST_CDN_URL = "https://wizards.cdn.spacestation14.com/"
FORK_ID = "wizards"
ROBUST_CDN_URL = "https://axolotl.yuniiworks.de/cdn/"
FORK_ID = "axolotl"

def main():
print("Fetching artifact URL from API...")
Expand Down
Loading