mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-03 07:41:21 +00:00
Adding 'publish' to ci.
This commit is contained in:
parent
abd695415f
commit
a96b93bdef
|
@ -1,4 +1,5 @@
|
||||||
.ci
|
.ci
|
||||||
|
.vscode
|
||||||
.travis
|
.travis
|
||||||
.travis.yml
|
.travis.yml
|
||||||
appveyor.yml
|
appveyor.yml
|
||||||
|
|
|
@ -9,4 +9,4 @@ $Filename = "qb64_development_win-${Env:PLATFORM}.7z"
|
||||||
$Dirname = "qb64"
|
$Dirname = "qb64"
|
||||||
Set-Location ..
|
Set-Location ..
|
||||||
7z a "-xr@${Dirname}\.ci\common-exclusion.list" "-xr@${Dirname}\.ci\win-exclusion.list" $Filename $Dirname
|
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
|
||||||
|
|
|
@ -8,9 +8,9 @@ dirname="qb64_${now}_`echo ${GITHUB_SHA} | sed 's/\(.......\).*$/\1/'`_${OS}"
|
||||||
cd ..
|
cd ..
|
||||||
mv qb64 "${dirname}"
|
mv qb64 "${dirname}"
|
||||||
tar --create --auto-compress --file ${filename} --exclude-from=${dirname}/.ci/common-exclusion.list --exclude-from=${dirname}/.ci/$OS-exclusion.list ${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}
|
# aws --endpoint-url ${S3_ENDPOINT} s3api put-object --bucket ${BUCKET} --body ${filename} --acl public-read --key development-builds/${filename}
|
||||||
if [[ $OS == lnx ]]; then
|
# 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
|
# aws --endpoint-url ${S3_ENDPOINT} s3api put-object --bucket ${BUCKET} --body ${dirname}/CHANGELOG.md --acl public-read --key development-builds/changelog.md
|
||||||
fi
|
# fi
|
||||||
# Move it back so the post-job cleanup doesn't complain
|
# Move it back so the post-job cleanup doesn't complain
|
||||||
mv "${dirname}" qb64
|
mv "${dirname}" qb64
|
||||||
|
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -18,6 +18,9 @@ jobs:
|
||||||
run: .ci/bootstrap.sh lnx
|
run: .ci/bootstrap.sh lnx
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.sh
|
run: .ci/compile.sh
|
||||||
|
- name: Publish
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
run: .ci/deploy.sh lnx
|
||||||
|
|
||||||
macos-build:
|
macos-build:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -28,6 +31,9 @@ jobs:
|
||||||
run: .ci/bootstrap.sh osx
|
run: .ci/bootstrap.sh osx
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.sh
|
run: .ci/compile.sh
|
||||||
|
- name: Publish
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
run: .ci/deploy.sh osx
|
||||||
|
|
||||||
windows-x86-build:
|
windows-x86-build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -40,6 +46,9 @@ jobs:
|
||||||
run: .ci/bootstrap.bat
|
run: .ci/bootstrap.bat
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.bat
|
run: .ci/compile.bat
|
||||||
|
- name: Publish
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
run: .ci/deploy.ps1
|
||||||
|
|
||||||
windows-x64-build:
|
windows-x64-build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -52,3 +61,6 @@ jobs:
|
||||||
run: .ci/bootstrap.bat
|
run: .ci/bootstrap.bat
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: .ci/compile.bat
|
run: .ci/compile.bat
|
||||||
|
- name: Publish
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
run: .ci/deploy.ps1
|
||||||
|
|
Loading…
Reference in a new issue