Skip to content

Commit

Permalink
Merge branch 'main' into clay-oneway-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeLonewolf authored Oct 24, 2023
2 parents 8fc8d9e + 35584bd commit 6d22cca
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ jobs:
interval: 500
- name: Generate Preview text
run: |
echo "## PR Preview:
echo "## Live PR Preview:
* [Map](https://preview.ourmap.us/pr/${{ env.PR_NUM }}/)
* [Shield Test](https://preview.ourmap.us/pr/${{ env.PR_NUM }}/shieldtest.html)
* [style.json](https://preview.ourmap.us/pr/${{ env.PR_NUM }}/style.json)
* [shields.json](https://preview.ourmap.us/pr/${{ env.PR_NUM }}/shields.json)
* [taginfo.json](https://preview.ourmap.us/pr/${{ env.PR_NUM }}/taginfo.json)
Live previews are automatically removed once the PR is merged.
## Sprite Sheets:
<img src="https://preview.ourmap.us/pr/${{ env.PR_NUM }}/sprites/sprite.png" />
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/s3-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Delete S3 Files on PR Merged

on:
pull_request:
types:
- closed

jobs:
delete-s3-files:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Remove files from S3
run: |
PR_NUMBER=${{ github.event.pull_request.number }}
aws s3 rm s3://${{ secrets.AWS_S3_BUCKET }}/pr/${PR_NUMBER}/ --recursive
2 changes: 2 additions & 0 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2169,6 +2169,8 @@ export function loadShields() {
bottom: 5,
},
};
shields["US:SD:Business"] = banneredShield(shields["US:SD"], ["BUS"]);
shields["US:SD:Truck"] = banneredShield(shields["US:SD"], ["TRK"]);
[
"Beadle",
"Bon_Homme",
Expand Down

0 comments on commit 6d22cca

Please sign in to comment.