Version 0.0.12 #10
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: Upload to S3 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| upload-to-s3: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: eu-west-1 | |
| - name: Install dependencies | |
| run: | | |
| npm install | |
| npm run build | |
| - name: Upload distributable files to S3 | |
| run: | | |
| VERSION=$(cat VERSION) | |
| aws s3 cp dist/Siperb-Provisioning.umd.min.js s3://cdn.siperb.com/lib/Siperb-Provisioning/Siperb-Provisioning-${VERSION}.umd.min.js --acl public-read --cache-control "max-age=2628000" | |
| aws s3 cp dist/Siperb-Provisioning.esm.min.js s3://cdn.siperb.com/lib/Siperb-Provisioning/Siperb-Provisioning-${VERSION}.esm.min.js --acl public-read --cache-control "max-age=2628000" |