mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
.
This commit is contained in:
14
.github/workflows/publish-embedded-packages.yaml
vendored
14
.github/workflows/publish-embedded-packages.yaml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
- name: Create Checksum
|
- name: Create Checksum
|
||||||
run: find ${{ env.FILENAME_PREFIX }} -type f -print0 | sort -z | xargs -0 sha256sum | tee ${{ env.FILENAME_PREFIX }}.sha256
|
run: find ${{ env.FILENAME_PREFIX }} -type f -print0 | sort -z | xargs -0 sha256sum | tee ${{ env.FILENAME_PREFIX }}.sha256
|
||||||
- name: Upload
|
- name: Upload
|
||||||
if: ${{ env.DRY_RUN == false }}
|
if: ${{ env.DRY_RUN == 'false' }}
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
@@ -87,12 +87,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm version ${{ env.VERSION }} --no-git-tag-version
|
npm version ${{ env.VERSION }} --no-git-tag-version
|
||||||
echo "NPM_VERSION=$(jq '.version' --raw-output package.json)" >> "$GITHUB_ENV"
|
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:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
|
||||||
|
|
||||||
- name: Add release note
|
- name: Add release note
|
||||||
if: ${{ env.DRY_RUN == false }}
|
if: ${{ env.DRY_RUN == 'false' }}
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
append_body: true
|
append_body: true
|
||||||
@@ -131,7 +131,7 @@ jobs:
|
|||||||
java-version: "17"
|
java-version: "17"
|
||||||
|
|
||||||
- name: Publish AAR
|
- name: Publish AAR
|
||||||
if: ${{ env.DRY_RUN == false }}
|
if: ${{ env.DRY_RUN == 'false' }}
|
||||||
# TODO: can we do some kind of dry run?
|
# TODO: can we do some kind of dry run?
|
||||||
env:
|
env:
|
||||||
EC_VERSION: ${{ env.VERSION }}
|
EC_VERSION: ${{ env.VERSION }}
|
||||||
@@ -142,7 +142,7 @@ jobs:
|
|||||||
run: embedded/android/publish_android_package.sh -s
|
run: embedded/android/publish_android_package.sh -s
|
||||||
|
|
||||||
- name: Add release note
|
- name: Add release note
|
||||||
if: ${{ env.DRY_RUN == false }}
|
if: ${{ env.DRY_RUN == 'false' }}
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
append_body: true
|
append_body: true
|
||||||
@@ -200,10 +200,10 @@ jobs:
|
|||||||
- name: Push
|
- name: Push
|
||||||
working-directory: element-call-swift
|
working-directory: element-call-swift
|
||||||
run: |
|
run: |
|
||||||
git push --tags ${{ env.DRY_RUN && '--dry-run' || '' }}
|
git push --tags ${{ env.DRY_RUN == 'true' && '--dry-run' || '' }}
|
||||||
|
|
||||||
- name: Add release note
|
- name: Add release note
|
||||||
if: ${{ env.DRY_RUN == false }}
|
if: ${{ env.DRY_RUN == 'false' }}
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
append_body: true
|
append_body: true
|
||||||
|
|||||||
18
.github/workflows/publish.yaml
vendored
18
.github/workflows/publish.yaml
vendored
@@ -23,6 +23,8 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write # required to upload release asset
|
contents: write # required to upload release asset
|
||||||
packages: write
|
packages: write
|
||||||
|
env:
|
||||||
|
FILENAME_PREFIX: element-call-${{ github.event.release.tag_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 Download built element-call artifact
|
- name: 📥 Download built element-call artifact
|
||||||
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
|
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
|
||||||
@@ -32,19 +34,15 @@ jobs:
|
|||||||
name: build-output-full
|
name: build-output-full
|
||||||
path: dist
|
path: dist
|
||||||
- name: Create Tarball
|
- name: Create Tarball
|
||||||
env:
|
|
||||||
TARBALL_VERSION: ${{ github.event.release.tag_name }}
|
|
||||||
run: |
|
run: |
|
||||||
tar --numeric-owner --transform "s/dist/element-call-${TARBALL_VERSION}/" -cvzf element-call-${TARBALL_VERSION}.tar.gz dist
|
tar --numeric-owner --transform "s/dist/${env.FILENAME_PREFIX}/" -cvzf ${env.FILENAME_PREFIX}.tar.gz dist
|
||||||
sha256sum element-call-${TARBALL_VERSION}.tar.gz | tee element-call-${TARBALL_VERSION}.tar.gz.sha256
|
sha256sum ${env.FILENAME_PREFIX}.tar.gz | tee ${env.FILENAME_PREFIX}.tar.gz.sha256
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
with:
|
with:
|
||||||
path: |
|
files: |
|
||||||
element-call-${{ github.event.release.tag_name }}.tar.gz
|
${env.FILENAME_PREFIX}.tar.gz
|
||||||
element-call-${{ github.event.release.tag_name }}.tar.gz.sha256
|
${env.FILENAME_PREFIX}.tar.gz.sha256
|
||||||
|
|
||||||
publish_docker:
|
publish_docker:
|
||||||
needs: build_element_call
|
needs: build_element_call
|
||||||
|
|||||||
Reference in New Issue
Block a user