Skip to content

test workflow thingy #6

test workflow thingy

test workflow thingy #6

Workflow file for this run

name: Publish Build
on:
push:
paths:
- .version
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Use your desired Node.js version
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Get version from .version file
id: get_version
run: echo "VERSION=$(cat .version)" >> $GITHUB_ENV
- name: Zip the dist directory
run: |
zip -r "${{ env.VERSION }}.zip" ./dist
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: "${{ env.VERSION }}" # Use the version from the file as the tag name
files: "${{ env.VERSION }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.CUBEDOOD_TOKEN }}