Skip to content

chore: merge develop into main, overwriting main with develop's changes #3

chore: merge develop into main, overwriting main with develop's changes

chore: merge develop into main, overwriting main with develop's changes #3

name: Build and Release
on:
push:
branches:
- main
tags:
- 'v*.*.*'
jobs:
build:
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14.15'
- name: Run grunt
run: npx grunt
- name: Zip files
run: zip -r release.zip .
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release
uses: ncipollo/[email protected]
with:
artifacts: "release.zip"
token: ${{ secrets.GITHUB_TOKEN }}