Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mirhmousavi committed Mar 21, 2024
1 parent 707034c commit f01c5b9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: "release"

on:
push:
branches:
- "master"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Shallow clones should be disabled to generate the release tag
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Build
run: |
npm install
gulp generic
- name: Create Release
run: tar czf build.tar.gz -C build .
- name: Create version tag
run: |
TAG="$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)"
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "build.tar.gz"
tag: ${{ env.TAG }}

0 comments on commit f01c5b9

Please sign in to comment.