Skip to content

Commit 1ffaefd

Browse files
automation: Moving deployment to be part of the same build script as action automation
1 parent eeb370f commit 1ffaefd

File tree

2 files changed

+16
-37
lines changed

2 files changed

+16
-37
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
- name: Build
1818
run: |
1919
./build_release_package.sh
20+
- name: zip
21+
run: |
22+
pushd target
23+
zip -r ../sc2-data.zip .
24+
popd
2025
- name: Push Artifacts
2126
uses: actions/upload-artifact@v4
2227
with:
@@ -26,5 +31,15 @@ jobs:
2631

2732
# A file, directory or wildcard pattern that describes what to upload
2833
# Required.
29-
path: target
34+
path: sc2-data.zip
3035
retention-days: 7
36+
- name: Deploy
37+
if: ${{ github.ref == 'refs/heads/sc2-next-mirror' }}
38+
uses: WebFreak001/deploy-nightly@v3.1.0
39+
with:
40+
# find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
41+
upload_url: https://uploads.github.com/repos/MatthewMarinets/Archipelago-SC2-data/releases/165275072/assets{?name,label}
42+
release_id: 165275072
43+
asset_path: ./sc2-data.zip
44+
asset_name: Archipelago-SC2-Data.zip
45+
asset_content_type: application/zip

.github/workflows/publish.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)