Skip to content

Commit

Permalink
Build & Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mbround18 committed May 4, 2022
1 parent a75c1d6 commit fc381dd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
25 changes: 13 additions & 12 deletions .autorc
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"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",
"name": "mbround18",
"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"
}
]
}
26 changes: 18 additions & 8 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fc381dd

Please sign in to comment.