Skip to content
Draft
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.jpg binary
*.png binary
71 changes: 71 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Create APWorld Release

on:
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
create-release:
name: Release apworld
runs-on: ubuntu-latest
env:
world: manual_linklink_silasary

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Checkout Archipelago
uses: actions/checkout@v3
with:
repository: ArchipelagoMW/Archipelago
path: Archipelago
fetch-depth: 1
- name: Set up venv and install dependencies
run: |
ln -s ${{ github.workspace }}/linklink Archipelago/worlds/${{ env.world }}
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r Archipelago/requirements.txt
python Archipelago/ModuleUpdate.py --yes --force
ls -la Archipelago/worlds/

- name: Create apworld file
run: |
source venv/bin/activate
cd Archipelago
python Launcher.py "Build APWorlds"

- name: Upload apworld as an artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.world }}.apworld
path: Archipelago/build/apworlds/${{ env.world }}.apworld
if-no-files-found: error
- name: Get Version Number
id: get_version
uses: mikefarah/yq@v4.45.1
with:
cmd: yq .world_version Archipelago/worlds/${{ env.world }}/archipelago.json --unwrapScalar=true
- name: Get Name
id: get_name
uses: mikefarah/yq@v4.45.1
with:
cmd: yq .game worlds/${{ env.world }}/archipelago.json --unwrapScalar=true
- name: Get Changelog
id: get_changelog
uses: mikefarah/yq@v4.45.1
with:
cmd: yq '.changelog | join("\n")' worlds/${{ env.world }}/archipelago.json --unwrapScalar=true

- name: Create release
uses: ncipollo/release-action@v1
with:
name: LinkLink v${{ steps.get_version.outputs.result }}
tag: ${{ steps.get_version.outputs.result }}
commit: ${{ env.GITHUB_REF }}
artifacts: "${{ env.world }}.apworld"
body: ${{ steps.get_changelog.outputs.result }}
2 changes: 1 addition & 1 deletion .github/workflows/update_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: silasary/ap_manuals/update-manual@main
with:
allow_unstable: 'true'
directory: '.'
directory: linklink

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
__pycache__
__pycache__/
.idea
.vs/
.vscode/
/.mypy_cache
/*.code-workspace
Loading