Bump @globus/static-data-portal from 3.0.0 to 3.0.3 (#7) #14
This file contains hidden or 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
| name: static | |
| on: | |
| # Runs on pushes to "main" | |
| push: | |
| branches: | |
| - main | |
| # Allows manual dispatch | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
| concurrency: | |
| group: "static" | |
| cancel-in-progress: false | |
| jobs: | |
| static: | |
| uses: from-static/actions/.github/workflows/static.yml@v2 | |
| with: | |
| deploy_to_github_pages: false | |
| deploy: | |
| # Our deploy process requires the `static` job to complete first. | |
| needs: [static] | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Download the artifact that was generated by the `static` job. | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: github-pages | |
| # Extract the artifact... | |
| - run: mkdir artifact | |
| - run: tar -xf artifact.tar -C ./artifact | |
| # ...and deploy it to S3. | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v6 | |
| with: | |
| role-to-assume: arn:aws:iam::431478890660:role/globus_example-data-portal-alternative-hosting-action | |
| aws-region: us-east-1 | |
| - run: | | |
| aws s3 sync ./artifact s3://globus-serverless-data-portal-example | |
| # The example implementation uses AWS Amplify to distribute the S3-deployed application; Redeploy the website to Amplify Hosting on S3 updates. | |
| # @see https://docs.aws.amazon.com/amplify/latest/userguide/update-website-deployed-from-s3.html | |
| # - run: | | |
| # aws amplify start-deployment --app-id d2i99wxmf4jtwi --branch-name main --source-url s3://globus-serverless-data-portal-example source-url-type BUCKET_PREFIX |