From fc381dd71a4e4f727f6e7b204c4cce5e81eaa046 Mon Sep 17 00:00:00 2001 From: Michael Bruno <12646562+mbround18@users.noreply.github.com> Date: Tue, 3 May 2022 22:10:01 -0600 Subject: [PATCH] Build & Publish --- .autorc | 25 +++++++++++++------------ .github/workflows/deployment.yaml | 26 ++++++++++++++++++-------- 2 files changed, 31 insertions(+), 20 deletions(-) diff --git a/.autorc b/.autorc index a321c49..ec60b80 100644 --- a/.autorc +++ b/.autorc @@ -1,14 +1,6 @@ { "plugins": [ - "git-tag", - [ - "s3", - { - "bucket": "mbruno-static-files", - "region": "us-west-2", - "files": [["./dist/*", "dnd-apps/vtt-maps/"]] - } - ] + "git-tag" ], "owner": "dnd-apps", "repo": "vtt-maps", @@ -16,8 +8,17 @@ "email": "12646562+mbround18@users.noreply.github.com", "noDefaultLabels": true, "labels": [ - { "releaseType": "major", "name": "Version: Major" }, - { "releaseType": "minor", "name": "Version: Minor" }, - { "releaseType": "patch", "name": "Version: Patch" } + { + "releaseType": "major", + "name": "Version: Major" + }, + { + "releaseType": "minor", + "name": "Version: Minor" + }, + { + "releaseType": "patch", + "name": "Version: Patch" + } ] } diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index 3e3d898..d55d83a 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -59,17 +59,27 @@ jobs: # Deps - name: Setup uses: ./.github/actions/setup - + - name: AWS CLI Install uses: unfor19/install-aws-cli-action@master - - # Deploy - - name: Deploy 🚀 - if: github.event_name != 'pull_request' - env: - AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} - AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} + # Release + - name: Release 🚀 uses: mbround18/auto@v1.1.0 with: token: ${{ secrets.GH_TOKEN }} # <- This is for auto + + - name: Upload Assets + env: + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} + run: | + # Build Release + trunk build --release -d ./dist ./packages/gh-pagify/index.html + + # Upload Release + aws \ + --region us-west-2 \ + s3 sync \ + ./dist \ + s3://mbruno-static-files/dnd-apps/vtt-apps