Skip to content

Commit

Permalink
Merge pull request #52 from iberdinsky-skilld/main
Browse files Browse the repository at this point in the history
GIthub workflow releases
  • Loading branch information
davidferlay authored Jun 6, 2024
2 parents 5e184fa + 905134c commit 337d553
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 55 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Create Archive on Tag

on:
push:
tags:
- '*'

jobs:
build_and_archive:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js 21
uses: actions/setup-node@v4
with:
node-version: '21'

- name: Enable Corepack
working-directory: client
run: corepack enable

- name: Install dependencies
working-directory: client
run: yarn install

- name: Build project
working-directory: client
run: yarn build

- name: Create archives of dist folder
working-directory: client
run: |
zip -r dist.zip dist
tar -czvf dist.tar.gz dist
- name: Upload archives as artifacts
uses: actions/upload-artifact@v4
with:
name: dist.zip
path: client/dist.zip

- name: Upload tar.gz as artifact
uses: actions/upload-artifact@v4
with:
name: dist.tar.gz
path: client/dist.tar.gz

- name: Create GitHub release
uses: elgohr/Github-Release-Action@v5
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: ${{ github.ref_name }}

- name: Upload dist.zip and dist.tar.gz to the release
uses: svenstaro/upload-release-action@v2
with:
file: client/dist.*
file_glob: true
tag: ${{ github.ref_name }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
55 changes: 0 additions & 55 deletions .goreleaser.yaml

This file was deleted.

0 comments on commit 337d553

Please sign in to comment.