Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(General): ♻️ Add public release #486

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 41 additions & 15 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,66 @@
name: Build and Release Artifact

name: build-dev
on:
push:
branches:
- main
- v2

jobs:
build-and-upload:
name: Build and Upload Artifact
build-and-release:
name: Build and release skupper-console (Dev)
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Set up Node.js
- name: Set up Node.js ⚙️
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: yarn.lock
cache-path: ~/.cache/yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Set env 📋
run: echo "RELEASE_VERSION=dev-build" >> $GITHUB_ENV

- name: Install 📦
run: |
yarn install --frozen-lockfile

- name: Build the project
run: yarn build --mode development
- name: Build 🚧
run: |
yarn build --mode development
env:
CI: false

- name: Package the build into a tarball
- name: Package 📦
run: |
cd build/ && tar -zcvf ../console-dev.tgz --exclude='./data' .

- name: Upload the artifact
uses: actions/upload-artifact@v3
- name: Create Release ✅
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "dev-build" # Using a proper tag name here
release_name: "Dev build"
body: |
Skupper-console (Dev) build is available as a tar ball:
- console-dev.tgz
Issues fixed in this release
- https://github.com/skupperproject/skupper-console/issues?q=is:issue+milestone:dev
draft: false # Set to `false` to make the release public

- name: Upload Release Asset ⬆️
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: console-dev-artifact
path: ./console-dev.tgz
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./console-dev.tgz
asset_name: console-dev.tgz
asset_content_type: application/tar+gzip
Loading