Skip to content

Commit

Permalink
debug: transfer data between jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
hickey committed Feb 8, 2024
1 parent 425db4a commit 30dcc15
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 41 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/build-api-package.yaml

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/build-meshchat-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ on:
jobs:
create-meshchat-package:
runs-on: ubuntu-latest
container:
image: registry.gitlab.com/wt0f/gitlab-runner-images/shell:latest
# container:
# image: registry.gitlab.com/wt0f/gitlab-runner-images/shell:latest
outputs:
package_file: ${{ steps.detect-package-file.outputs.file }}
steps:
- uses: actions/checkout@v3
- run: info "Populating the filesystem with MeshChat files"
- uses: actions/checkout@v4
# - run: info "Populating the filesystem with MeshChat files"
- run: package/populate-meshchat-fs.sh ${{ inputs.build_dir }}
- run: info "Updating version numbers to "
# - run: info "Updating version numbers to "
- run: package/update-version.sh ${{ inputs.build_dir }}
- run: info "Packing up MeshChat files"
# - run: info "Packing up MeshChat files"
- run: package/ipk-build.sh ${{ inputs.build_dir }}
- id: detect-package-file
run: echo "file=$(ls -1 meshchat_*.ipk)"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: meshchat
path: |
Expand Down
40 changes: 24 additions & 16 deletions .github/workflows/release-meshchat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ on:
pull_request:
types: [closed]
branches: [release]
push:
env:
IPK_DIR: package/meshchat-ipkg
jobs:
calculate-version-number:
runs-on: registry.gitlab.com/wt0f/gitlab-runner-images/node:latest
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
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: git config
Expand All @@ -19,34 +24,37 @@ jobs:
- 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
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_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
- uses: actions/upload-artifact@v4
with:
name: meshchat
path: |
VERSION
path: VERSION

release_meshchat_package:
release-meshchat-package:
needs: calculate-version-number
uses:
hickey/meshchat/.github/workflows/build-meshchat-pacakge.yaml@master
./.github/workflows/build-meshchat-package.yaml
with:
version: ${{ steps.detect_version.outputs.version }}
build_dir: ${{ env.IPK_DIR }}
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
# 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
- uses: actions/download-artifact@v4
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
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_TOKEN }}

0 comments on commit 30dcc15

Please sign in to comment.