Skip to content

Commit

Permalink
Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarrison committed Dec 31, 2023
1 parent b4f8ad0 commit 1c55f7c
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

permissions:
contents: write

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: yarn build
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Create release folder
run: mkdir -p dist/release
- name: Make zip
uses: thedoctor0/[email protected]
with:
type: zip
directory: dist
exclusions: release
filename: release/time-card-extension.zip
- name: Make tar
uses: thedoctor0/[email protected]
with:
type: tar
directory: dist
exclusions: release
filename: release/time-card-extension.tar.gz
- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/release/time-card-extension.*

0 comments on commit 1c55f7c

Please sign in to comment.