Skip to content

Commit

Permalink
chore: workflow add s3
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Revyn112 committed Dec 4, 2023
1 parent ce48d1e commit 26d84cd
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
lfs: false
- name: Set BUILT_DATE_TIME
run: echo "BUILT_DATE_TIME=$(date -u -Iseconds)" >> $GITHUB_ENV
- name: Create .env file
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
lfs: false
- name: Set BUILT_DATE_TIME
run: echo "BUILT_DATE_TIME=$(date -u -Iseconds)" >> $GITHUB_ENV
- name: Create .env file
Expand Down Expand Up @@ -130,6 +130,17 @@ jobs:
cd ./build-a339x/out/
zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME }} ./headwindsim-aircraft-a330-900/
cd ../../
- name: Deploy S3
uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_S3_BUCKET_REGION }}
SOURCE_DIR: './build-a339x/out/build-modules'
DEST_DIR: ${{ env.CDN_BUCKET_DESTINATION }}
- name: Upload to CloudFlare CDN
run: |
./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-a339x/out/build-modules
Expand Down Expand Up @@ -169,7 +180,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
lfs: false
- name: Set BUILT_DATE_TIME
run: echo "BUILT_DATE_TIME=$(date -u -Iseconds)" >> $GITHUB_ENV
- name: Create .env file
Expand Down

0 comments on commit 26d84cd

Please sign in to comment.