-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: Automated Workflow | ||
"on": | ||
push: | ||
branches: | ||
|
@@ -73,34 +73,7 @@ jobs: | |
source: ./dist | ||
destination: /builder/latest | ||
acl: public-read | ||
|
||
dist: | ||
runs-on: ubuntu-latest | ||
needs: release | ||
if: needs.release.outputs.new_release_published | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: setup nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.15.4 | ||
- name: yarn install | ||
run: > | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > | ||
.npmrc | ||
yarn install | ||
- run: yarn build | ||
- run: git add . | ||
- run: git config user.email "[email protected]" | ||
- run: git config user.name "frank pagan" | ||
- run: git commit --allow-empty -m "add dist bundle" | ||
- run: git pull origin master | ||
- run: git commit --allow-empty -m "add dist bundle" | ||
- run: git push origin master | ||
invalidations: true | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Manual Workflow | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
invalidations: | ||
description: | | ||
If set to 'true', invalidates previous upload. | ||
default: "true" | ||
required: true | ||
|
||
jobs: | ||
cdn: | ||
runs-on: ubuntu-latest | ||
env: | ||
DRY_RUN: ${{ github.event.inputs.dry_run }} | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: setup nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.15.4 | ||
- name: yarn install | ||
run: > | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > | ||
.npmrc | ||
yarn install | ||
- name: yarn build | ||
run: yarn build | ||
- name: upload latest bundle | ||
uses: CoCreate-app/CoCreate-s3@master | ||
with: | ||
aws-key-id: "${{ secrets.AWSACCESSKEYID }}" | ||
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" | ||
distributionId: "${{ secrets.DISTRIBUTION_ID }}" | ||
bucket: testcrudbucket | ||
source: ./dist | ||
destination: /builder/latest | ||
acl: public-read | ||
invalidations: ${{ github.event.inputs.invalidations }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters