Skip to content

Commit

Permalink
Merge pull request #464 from rtfpessoa/test-actions
Browse files Browse the repository at this point in the history
Migrate to GitHub Actions
  • Loading branch information
rtfpessoa committed Jan 6, 2023
2 parents 7cd6bb9 + c89192a commit 88b06ef
Show file tree
Hide file tree
Showing 5 changed files with 189 additions and 270 deletions.
219 changes: 0 additions & 219 deletions .circleci/config.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: ci

on:
pull_request:
branches: [master]

jobs:
test-and-publish:
uses: ./.github/workflows/test-and-publish.yml
with:
environment: dev
secrets: inherit
51 changes: 0 additions & 51 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
push:
branches: [master]

jobs:
test-and-publish:
uses: ./.github/workflows/test-and-publish.yml
with:
environment: production
secrets: inherit

publish-website:
runs-on: ubuntu-latest
container:
image: amazon/aws-cli
needs: [test-and-publish]
environment: 'production'
steps:
- name: Download docs
uses: actions/download-artifact@v3
with:
name: docs
- name: Publish to S3
run: |
cd docs
aws s3 sync --region eu-west-1 --delete . s3://diff2html.xyz --metadata-directive REPLACE --cache-control max-age=31557600
aws cloudfront create-invalidation --region eu-west-1 --distribution-id $AWS_CF_DISTRIBUTION_ID --paths /index.html /demo.html /sitemap.xml /robots.txt

0 comments on commit 88b06ef

Please sign in to comment.