Compare commits
1 Commits
master
...
singleRele
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bfaaeda405 |
7
.github/workflows/android.yml
vendored
7
.github/workflows/android.yml
vendored
@ -25,8 +25,7 @@ jobs:
|
||||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version="$(bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for non-push build runs
|
||||
if: github.event_name != 'push'
|
||||
@ -70,13 +69,13 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
fail_on_unmatched_files: true
|
||||
files: |
|
||||
Subsurface-mobile*.apk
|
||||
"$GITHUB_WORKSPACE"/Subsurface-mobile*.apk
|
||||
|
||||
- name: delete the keystore
|
||||
if: github.event_name == 'push'
|
||||
|
||||
3
.github/workflows/fedora-copr-build.yml
vendored
3
.github/workflows/fedora-copr-build.yml
vendored
@ -29,7 +29,8 @@ jobs:
|
||||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
version=$(<release-version)
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Setup API token for copr-cli
|
||||
|
||||
3
.github/workflows/linux-snap.yml
vendored
3
.github/workflows/linux-snap.yml
vendored
@ -24,8 +24,7 @@ jobs:
|
||||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
|
||||
7
.github/workflows/linux-trusty-5.12.yml
vendored
7
.github/workflows/linux-trusty-5.12.yml
vendored
@ -21,8 +21,7 @@ jobs:
|
||||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
@ -56,14 +55,14 @@ jobs:
|
||||
- name: prepare release artifacts
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
mv Subsurface.AppImage Subsurface-v${{ steps.version_number.outputs.version }}.AppImage
|
||||
mv Subsurface.AppImage Subsurface-v(<release-version).AppImage
|
||||
|
||||
# only publish a 'release' on push events (those include merging a PR)
|
||||
- name: upload binaries
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
|
||||
5
.github/workflows/mac.yml
vendored
5
.github/workflows/mac.yml
vendored
@ -18,8 +18,7 @@ jobs:
|
||||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
@ -59,7 +58,7 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
|
||||
9
.github/workflows/post-releasenotes.yml
vendored
9
.github/workflows/post-releasenotes.yml
vendored
@ -12,20 +12,21 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: atomically create or retrieve the build number and assemble release notes
|
||||
id: version_number
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash -x ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
bash scripts/create-releasenotes.sh ${{ github.event.head_commit.id }}
|
||||
|
||||
# ironically, we have to upload a file, otherwise this won't create a release with just the release notes
|
||||
- name: publish release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
files: gh_release_notes
|
||||
body_path: gh_release_notes
|
||||
|
||||
3
.github/workflows/ubuntu-launchpad-build.yml
vendored
3
.github/workflows/ubuntu-launchpad-build.yml
vendored
@ -18,8 +18,7 @@ jobs:
|
||||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: Setup build dependencies
|
||||
run: |
|
||||
|
||||
5
.github/workflows/windows.yml
vendored
5
.github/workflows/windows.yml
vendored
@ -21,8 +21,7 @@ jobs:
|
||||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
@ -52,7 +51,7 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
|
||||
@ -4,7 +4,10 @@
|
||||
# token this will not work when run from the command line
|
||||
# call it from the default position in the filesystem (which is inside the subsurface git tree)
|
||||
#
|
||||
# Usage: get-atimic-buildnr.sh SHA secrets.NIGHTLY_BUILDS [extra-name-component]
|
||||
# Usage: get-atomic-buildnr.sh SHA secrets.NIGHTLY_BUILDS [extra-name-component]
|
||||
#
|
||||
# the resulting release version is stored in the file ./release-version
|
||||
|
||||
# checkout the nightly-builds repo in parallel to the main repo
|
||||
# the clone followed by the pointless push should verify that the password is stored in the config
|
||||
# that way the script doesn't need the password
|
||||
@ -14,8 +17,10 @@ git clone -b main https://github.com/subsurface/nightly-builds
|
||||
cd nightly-builds
|
||||
git remote set-url origin "$url"
|
||||
git push origin main
|
||||
echo "build number prior to get-or-create was $(<latest-subsurface-buildnumber)"
|
||||
cd ..
|
||||
bash -x subsurface/scripts/get-or-create-build-nr.sh "$1" &> /dev/null
|
||||
echo "build number after get-or-create is $(<subsurface/latest-subsurface-buildnumber)"
|
||||
cp nightly-builds/latest-subsurface-buildnumber subsurface
|
||||
[[ -n $3 ]] && echo "$3" > subsurface/latest-subsurface-buildnumber-extension
|
||||
bash subsurface/scripts/get-version
|
||||
bash subsurface/scripts/get-version > subsurface/release-version
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user