1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 09:10:37 +00:00

Adding 'publish' to ci.

This commit is contained in:
Cory Smith 2022-09-06 13:19:27 -05:00
parent abd695415f
commit a96b93bdef
4 changed files with 18 additions and 5 deletions

View file

@ -1,4 +1,5 @@
.ci
.vscode
.travis
.travis.yml
appveyor.yml

View file

@ -9,4 +9,4 @@ $Filename = "qb64_development_win-${Env:PLATFORM}.7z"
$Dirname = "qb64"
Set-Location ..
7z a "-xr@${Dirname}\.ci\common-exclusion.list" "-xr@${Dirname}\.ci\win-exclusion.list" $Filename $Dirname
aws --endpoint-url ${Env:S3_ENDPOINT} s3api put-object --bucket ${Bucket} --body $Filename --acl public-read --key development-builds/$Filename
# aws --endpoint-url ${Env:S3_ENDPOINT} s3api put-object --bucket ${Bucket} --body $Filename --acl public-read --key development-builds/$Filename

View file

@ -8,9 +8,9 @@ dirname="qb64_${now}_`echo ${GITHUB_SHA} | sed 's/\(.......\).*$/\1/'`_${OS}"
cd ..
mv qb64 "${dirname}"
tar --create --auto-compress --file ${filename} --exclude-from=${dirname}/.ci/common-exclusion.list --exclude-from=${dirname}/.ci/$OS-exclusion.list ${dirname}
aws --endpoint-url ${S3_ENDPOINT} s3api put-object --bucket ${BUCKET} --body ${filename} --acl public-read --key development-builds/${filename}
if [[ $OS == lnx ]]; then
aws --endpoint-url ${S3_ENDPOINT} s3api put-object --bucket ${BUCKET} --body ${dirname}/CHANGELOG.md --acl public-read --key development-builds/changelog.md
fi
# aws --endpoint-url ${S3_ENDPOINT} s3api put-object --bucket ${BUCKET} --body ${filename} --acl public-read --key development-builds/${filename}
# if [[ $OS == lnx ]]; then
# aws --endpoint-url ${S3_ENDPOINT} s3api put-object --bucket ${BUCKET} --body ${dirname}/CHANGELOG.md --acl public-read --key development-builds/changelog.md
# fi
# Move it back so the post-job cleanup doesn't complain
mv "${dirname}" qb64

View file

@ -18,6 +18,9 @@ jobs:
run: .ci/bootstrap.sh lnx
- name: Compile
run: .ci/compile.sh
- name: Publish
if: github.event_name == 'push'
run: .ci/deploy.sh lnx
macos-build:
runs-on: macos-latest
@ -28,6 +31,9 @@ jobs:
run: .ci/bootstrap.sh osx
- name: Compile
run: .ci/compile.sh
- name: Publish
if: github.event_name == 'push'
run: .ci/deploy.sh osx
windows-x86-build:
runs-on: windows-latest
@ -40,6 +46,9 @@ jobs:
run: .ci/bootstrap.bat
- name: Compile
run: .ci/compile.bat
- name: Publish
if: github.event_name == 'push'
run: .ci/deploy.ps1
windows-x64-build:
runs-on: windows-latest
@ -52,3 +61,6 @@ jobs:
run: .ci/bootstrap.bat
- name: Compile
run: .ci/compile.bat
- name: Publish
if: github.event_name == 'push'
run: .ci/deploy.ps1