mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 03:00:25 +00:00
Remove dependency on aws-actions/configure-aws-credentials
This commit is contained in:
parent
62e6e87678
commit
9a89aef365
|
@ -4,7 +4,7 @@ $Filename = "qb64_${Timestamp}_$($Env:GITHUB_SHA.substring(0,7))_win-${Env:PLATF
|
||||||
|
|
||||||
Set-Location ..
|
Set-Location ..
|
||||||
7z a '-xr@qb64\.ci\common-exclusion.list' '-xr@qb64\.ci\win-exclusion.list' $Filename qb64
|
7z a '-xr@qb64\.ci\common-exclusion.list' '-xr@qb64\.ci\win-exclusion.list' $Filename qb64
|
||||||
$OldFiles = aws --output json --query Contents[].Key s3api list-objects --bucket $Bucket --prefix win-$Env:PLATFORM | ConvertFrom-Json
|
$OldFiles = aws ${Env:S3_ENDPOINT} --output json --query Contents[].Key s3api list-objects --bucket $Bucket --prefix win-${Env:PLATFORM} | ConvertFrom-Json
|
||||||
aws s3 cp $Filename "s3://${Bucket}/win-${Env:PLATFORM}/"
|
aws s3 cp $Filename "s3://${Bucket}/win-${Env:PLATFORM}/"
|
||||||
Set-Content -Path latest.txt -NoNewline -Value $Filename
|
Set-Content -Path latest.txt -NoNewline -Value $Filename
|
||||||
foreach ($f in $OldFiles) {
|
foreach ($f in $OldFiles) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ cd ..
|
||||||
tar --create --auto-compress --file ${filename} --exclude-from=qb64/.ci/common-exclusion.list --exclude-from=qb64/.ci/$OS-exclusion.list qb64
|
tar --create --auto-compress --file ${filename} --exclude-from=qb64/.ci/common-exclusion.list --exclude-from=qb64/.ci/$OS-exclusion.list qb64
|
||||||
|
|
||||||
current_files=$(aws --output text --query 'Contents[].Key' s3api list-objects --bucket ${BUCKET} --prefix ${OS})
|
current_files=$(aws --output text --query 'Contents[].Key' s3api list-objects --bucket ${BUCKET} --prefix ${OS})
|
||||||
aws s3 cp ${filename} s3://${BUCKET}/${OS}/
|
aws s3 ${S3_ENDPOINT} cp ${filename} s3://${BUCKET}/${OS}/
|
||||||
echo -n $(basename "${filename}") > latest.txt
|
echo -n $(basename "${filename}") > latest.txt
|
||||||
for f in $current_files; do
|
for f in $current_files; do
|
||||||
aws s3 rm s3://${BUCKET}/$f
|
aws s3 rm s3://${BUCKET}/$f
|
||||||
|
|
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
|
@ -15,16 +15,12 @@ jobs:
|
||||||
run: .ci/bootstrap.sh lnx
|
run: .ci/bootstrap.sh lnx
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.sh
|
run: .ci/compile.sh
|
||||||
- name: Setup aws
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: us-east-2
|
|
||||||
- name: Publish to S3
|
- name: Publish to S3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: .ci/deploy.sh lnx
|
run: .ci/deploy.sh lnx
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
macos-build:
|
macos-build:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -35,16 +31,12 @@ jobs:
|
||||||
run: .ci/bootstrap.sh osx
|
run: .ci/bootstrap.sh osx
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.sh
|
run: .ci/compile.sh
|
||||||
- name: Setup aws
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: us-east-2
|
|
||||||
- name: Publish to S3
|
- name: Publish to S3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: .ci/deploy.sh osx
|
run: .ci/deploy.sh osx
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
windows-x86-build:
|
windows-x86-build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -57,16 +49,12 @@ jobs:
|
||||||
run: .ci/bootstrap.bat
|
run: .ci/bootstrap.bat
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.bat
|
run: .ci/compile.bat
|
||||||
- name: Setup aws
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: us-east-2
|
|
||||||
- name: Publish to S3
|
- name: Publish to S3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: .ci/deploy.ps1
|
run: .ci/deploy.ps1
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
windows-x64-build:
|
windows-x64-build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -79,14 +67,10 @@ jobs:
|
||||||
run: .ci/bootstrap.bat
|
run: .ci/bootstrap.bat
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.bat
|
run: .ci/compile.bat
|
||||||
- name: Setup aws
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: us-east-2
|
|
||||||
- name: Publish to S3
|
- name: Publish to S3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: .ci/deploy.ps1
|
run: .ci/deploy.ps1
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
|
40
.github/workflows/run.yml
vendored
40
.github/workflows/run.yml
vendored
|
@ -24,16 +24,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: development
|
branch: development
|
||||||
- name: Setup aws
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: us-east-2
|
|
||||||
- name: Publish to S3
|
- name: Publish to S3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: .ci/deploy.sh lnx
|
run: .ci/deploy.sh lnx
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
macos-build:
|
macos-build:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -44,16 +40,12 @@ jobs:
|
||||||
run: .ci/bootstrap.sh osx
|
run: .ci/bootstrap.sh osx
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.sh
|
run: .ci/compile.sh
|
||||||
- name: Setup aws
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: us-east-2
|
|
||||||
- name: Publish to S3
|
- name: Publish to S3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: .ci/deploy.sh osx
|
run: .ci/deploy.sh osx
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
windows-x86-build:
|
windows-x86-build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -66,16 +58,12 @@ jobs:
|
||||||
run: .ci/bootstrap.bat
|
run: .ci/bootstrap.bat
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.bat
|
run: .ci/compile.bat
|
||||||
- name: Setup aws
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: us-east-2
|
|
||||||
- name: Publish to S3
|
- name: Publish to S3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: .ci/deploy.ps1
|
run: .ci/deploy.ps1
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
windows-x64-build:
|
windows-x64-build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -88,13 +76,9 @@ jobs:
|
||||||
run: .ci/bootstrap.bat
|
run: .ci/bootstrap.bat
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.bat
|
run: .ci/compile.bat
|
||||||
- name: Setup aws
|
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: us-east-2
|
|
||||||
- name: Publish to S3
|
- name: Publish to S3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: .ci/deploy.ps1
|
run: .ci/deploy.ps1
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
Loading…
Reference in a new issue