Skip to content

debug: transfer data between jobs #11

debug: transfer data between jobs

debug: transfer data between jobs #11

name: Release MeshChat Package
on:
pull_request:
types: [closed]
branches: [release]
push:
env:
IPK_DIR: package/meshchat-ipkg
jobs:
calculate-version-number:
runs-on: ubuntu-latest
container:
image: registry.gitlab.com/wt0f/gitlab-runner-images/node:latest
outputs:
version: ${{ steps.detect_version.outputs.version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm install -g release-it @release-it/conventional-changelog @commitlint/config-conventional @commitlint/cli auto-changelog
- run: npx release-it --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: git checkout master
- run: git rebase release
- run: git push
- run: npx release-it --release-version > VERSION
- id: detect_version
run: echo "version=$(cat VERSION)" >> "${GITHUB_OUTPUT}"
- uses: action/upload-artifact@v3
with:
name: meshchat
path: VERSION
release-meshchat-package:
needs: calculate-version-number
uses:
./.github/workflows/build-meshchat-package.yaml
with:
version: ${{ needs.calculate-version-number.outputs.version }}
build_dir: ${IPK_DIR}
add-meshchat-package-to-release:
needs: release-meshchat-package
runs-on: ubuntu-latest
container:
image: registry.gitlab.com/wt0f/gitlab-runner-images/node:latest
steps:
- run: npm install -g release-it @release-it/conventional-changelog @commitlint/config-conventional @commitlint/cli auto-changelog
- uses: actions/download-artifact@v3
with:
name: meshchat
path: ${{ needs.release_meshchat_package.outputs.package_file }}
- run: npx release-it --ci --no-increment --no-git --github.release=false --github.assets=*.dep --github.assets=*.ipk