Merge pull request #443 from bartoval/general_refactor #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
# Sequence of patterns matched against tags | |
# Right now, we run this job automatically when a semantically versioned | |
# tag is pushed (with an optional suffix). | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
build-and-release: | |
name: Build and release skupper-console | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Set up Node.js ⚙️ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
cache-dependency-path: yarn.lock | |
- name: Set env 📋 | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Install 📦 | |
run: | | |
yarn install --immutable --immutable-cache --check-cache --prefer-offline | |
- name: Build 🚧 | |
run: | | |
yarn build | |
env: | |
CI: false | |
- name: Unit tests 🔧 | |
run: | | |
yarn test | |
- name: Package 📦 | |
run: | | |
cd build/ && tar -zcvf ../console.tgz --exclude='./data' . | |
- name: Create Draft Release ✅ | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ env.RELEASE_VERSION }} | |
body: | | |
Skupper-console is available as a tar ball: | |
- console.tgz | |
Issues fixed in this release | |
- https://github.com/skupperproject/skupper-console/issues?q=is:issue%20milestone:${{ env.RELEASE_VERSION }} | |
draft: true | |
- name: Upload Release Asset ⬆️ | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./console.tgz | |
asset_name: console.tgz | |
asset_content_type: application/tar+gzip |