Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Nov 18, 2024
1 parent ac33bf1 commit b1bcf43
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: (Manual) Build, test and release snap

on:
workflow_dispatch:
# this trigger uses existing version for release

jobs:
prereqs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps._id.outputs.version }}
steps:
- uses: actions/checkout@v3
- shell: bash
id: _id
run: |
tag="$(awk -F: '/^version:/ {print $2}' snap/snapcraft.yaml | tr -d '[:space:]')"
echo "tag: $tag"
echo "version=$tag" >> $GITHUB_OUTPUT
build-and-test:
needs: [ prereqs ]
uses: RocketChat/server-snap/.github/workflows/test.yml@develop
with:
tag: ${{ needs.prereqs.outputs.version }}
secrets:
snapcraft-credential: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}

release:
needs:
- build-and-test
uses: RocketChat/server-snap/.github/workflows/release.yml@develop
with:
snap: ${{ needs.build-and-test.outputs.snap-basename }}
snap-track: ${{ needs.build-and-test.outputs.snap-track }}
commit: ${{ needs.build-and-test.outputs.commit }}
tag: ${{ inputs.tag }}
secrets:
snapcraft-credential: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b1bcf43

Please sign in to comment.