This commit is contained in:
Hugh Nimmo-Smith
2025-03-14 15:59:58 +00:00
parent ba9d47aaf3
commit 1c7b71c296
2 changed files with 15 additions and 17 deletions

View File

@@ -49,7 +49,7 @@ jobs:
- name: Create Checksum
run: find ${{ env.FILENAME_PREFIX }} -type f -print0 | sort -z | xargs -0 sha256sum | tee ${{ env.FILENAME_PREFIX }}.sha256
- name: Upload
if: ${{ env.DRY_RUN == false }}
if: ${{ env.DRY_RUN == 'false' }}
uses: softprops/action-gh-release@v2
with:
files: |
@@ -87,12 +87,12 @@ jobs:
run: |
npm version ${{ env.VERSION }} --no-git-tag-version
echo "NPM_VERSION=$(jq '.version' --raw-output package.json)" >> "$GITHUB_ENV"
npm publish --provenance --access public ${{ env.DRY_RUN && '--dry-run' || '' }}
npm publish --provenance --access public ${{ env.DRY_RUN == 'true' && '--dry-run' || '' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
- name: Add release note
if: ${{ env.DRY_RUN == false }}
if: ${{ env.DRY_RUN == 'false' }}
uses: softprops/action-gh-release@v2
with:
append_body: true
@@ -131,7 +131,7 @@ jobs:
java-version: "17"
- name: Publish AAR
if: ${{ env.DRY_RUN == false }}
if: ${{ env.DRY_RUN == 'false' }}
# TODO: can we do some kind of dry run?
env:
EC_VERSION: ${{ env.VERSION }}
@@ -142,7 +142,7 @@ jobs:
run: embedded/android/publish_android_package.sh -s
- name: Add release note
if: ${{ env.DRY_RUN == false }}
if: ${{ env.DRY_RUN == 'false' }}
uses: softprops/action-gh-release@v2
with:
append_body: true
@@ -200,10 +200,10 @@ jobs:
- name: Push
working-directory: element-call-swift
run: |
git push --tags ${{ env.DRY_RUN && '--dry-run' || '' }}
git push --tags ${{ env.DRY_RUN == 'true' && '--dry-run' || '' }}
- name: Add release note
if: ${{ env.DRY_RUN == false }}
if: ${{ env.DRY_RUN == 'false' }}
uses: softprops/action-gh-release@v2
with:
append_body: true

View File

@@ -23,6 +23,8 @@ jobs:
permissions:
contents: write # required to upload release asset
packages: write
env:
FILENAME_PREFIX: element-call-${{ github.event.release.tag_name }}
steps:
- name: 📥 Download built element-call artifact
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
@@ -32,19 +34,15 @@ jobs:
name: build-output-full
path: dist
- name: Create Tarball
env:
TARBALL_VERSION: ${{ github.event.release.tag_name }}
run: |
tar --numeric-owner --transform "s/dist/element-call-${TARBALL_VERSION}/" -cvzf element-call-${TARBALL_VERSION}.tar.gz dist
sha256sum element-call-${TARBALL_VERSION}.tar.gz | tee element-call-${TARBALL_VERSION}.tar.gz.sha256
tar --numeric-owner --transform "s/dist/${env.FILENAME_PREFIX}/" -cvzf ${env.FILENAME_PREFIX}.tar.gz dist
sha256sum ${env.FILENAME_PREFIX}.tar.gz | tee ${env.FILENAME_PREFIX}.tar.gz.sha256
- name: Upload
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
env:
GITHUB_TOKEN: ${{ github.token }}
uses: softprops/action-gh-release@v2
with:
path: |
element-call-${{ github.event.release.tag_name }}.tar.gz
element-call-${{ github.event.release.tag_name }}.tar.gz.sha256
files: |
${env.FILENAME_PREFIX}.tar.gz
${env.FILENAME_PREFIX}.tar.gz.sha256
publish_docker:
needs: build_element_call