Skip to content

Migrate to paneron/dataset-build-action/build #25

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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
17 changes: 6 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,16 @@ on:
- '*' # matches every branch
- '*/*' # matches every branch containing a single '/'
- '!master' # excludes master
- '!staging' # excludes master
- '!staging' # excludes staging
pull_request:

jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Use Node
uses: actions/setup-node@v1
- uses: actions/checkout@v2

- uses: paneron/dataset-build-action/build@main
with:
node-version: '10.x'
- uses: actions/checkout@master
- name: Install NPM dependencies
run: |
yarn install
- name: Build site
run: |
yarn build -d
scaffolding: paneron/glossary-site-scaffolding
41 changes: 11 additions & 30 deletions .github/workflows/deploy-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,16 @@ jobs:
environment:
name: production
steps:
- name: Use Node
uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/checkout@master
- name: Install NPM dependencies
run: |
yarn install
- name: Build site
run: |
yarn build -d
- uses: actions/checkout@v2

- uses: paneron/dataset-build-action/build@main
with:
scaffolding: paneron/glossary-site-scaffolding

- name: Deploy to glossarist.org
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
run: |
aws configure set default.s3.max_concurrent_requests 100
aws configure set default.s3.max_queue_size 10000
aws configure set default.s3.use_accelerate_endpoint true
aws configure set default.s3.payload_signing_enabled false
aws s3 sync dist s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --exclude "*" --include "*.html" --content-type "text/html; charset=utf-8"
aws s3 sync dist s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --exclude "*" --include "*.json" --content-type "application/json; charset=utf-8"
aws s3 sync dist s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --exclude "*" --include "*.jsonld" --content-type "application/ld+json; charset=utf-8"
aws s3 sync dist s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --exclude "*" --include "*.ttl" --content-type "text/turtle; charset=utf-8"
aws s3 sync dist s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --include "*" --exclude "*.html" --exclude "*.json" --exclude "*.jsonld" --exclude "*.ttl"
aws configure set preview.cloudfront true
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
- uses: paneron/dataset-build-action/aws-deploy@main
with:
access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
region: ${{ secrets.AWS_REGION }}
s3-bucket: ${{ secrets.S3_BUCKET_NAME }}
cloudfront-distribution-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
41 changes: 11 additions & 30 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,16 @@ jobs:
environment:
name: staging
steps:
- name: Use Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- uses: actions/checkout@master
- name: Install NPM dependencies
run: |
yarn install
- name: Build site
run: |
yarn build -d
- uses: actions/checkout@v2

- uses: paneron/dataset-build-action/build@main
with:
scaffolding: paneron/glossary-site-scaffolding

- name: Deploy to glossarist.org
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
run: |
aws configure set default.s3.max_concurrent_requests 100
aws configure set default.s3.max_queue_size 10000
aws configure set default.s3.use_accelerate_endpoint true
aws configure set default.s3.payload_signing_enabled false
aws s3 sync _site s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --exclude "*" --include "*.html" --content-type "text/html; charset=utf-8"
aws s3 sync _site s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --exclude "*" --include "*.json" --content-type "application/json; charset=utf-8"
aws s3 sync _site s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --exclude "*" --include "*.jsonld" --content-type "application/ld+json; charset=utf-8"
aws s3 sync _site s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --exclude "*" --include "*.ttl" --content-type "text/turtle; charset=utf-8"
aws s3 sync _site s3://$S3_BUCKET_NAME --region=$AWS_REGION --delete --no-progress --include "*" --exclude "*.html" --exclude "*.json" --exclude "*.jsonld" --exclude "*.ttl"
aws configure set preview.cloudfront true
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
- uses: paneron/dataset-build-action/aws-deploy@main
with:
access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
region: ${{ secrets.AWS_REGION }}
s3-bucket: ${{ secrets.S3_BUCKET_NAME }}
cloudfront-distribution-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
50 changes: 0 additions & 50 deletions package.json

This file was deleted.

41 changes: 0 additions & 41 deletions src/App.tsx

This file was deleted.

57 changes: 0 additions & 57 deletions src/GlobalStyle.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/app.css

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/Symbol.svg

This file was deleted.

Loading