Skip to content

Release 1.5.8

Release 1.5.8 #76

Workflow file for this run

name: Build and Release
on:
workflow_dispatch: # Allows manual triggering of the workflow
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 # Change to your required Node.js version
- name: Install dependencies
run: yarn install --frozen-lockfile # Use Yarn to install dependencies
- name: Build the project
run: yarn build:production # Adjust this command based on your build process
- name: Create lock file
run: yarn install --frozen-lockfile # Creates or updates the lock file
- name: Create release directory
run: mkdir -p release/kokofixcomputers
- name: Clean up unnecessary files
run: |
rm -rf node_modules tests CODE_OF_CONDUCT.md CONTRIBUTING.md flake.lock flake.nix phpunit.xml shell.nix
echo "Unnecessary files removed."
- name: Wait for previous tasks to finish
run: sleep 3s
- name: Prepare files for packaging
run: |
mkdir -p /tmp/package
cp -r ./* /tmp/package/ # Ensure .env.example is present in the current directory
cp -r ./.env.example /tmp/package/ # Explicitly copy .env.example if needed
echo "Files prepared for packaging."
- name: Package the build into a tar file
run: |
TAR_FILE="release/kokofixcomputers/panel.tar.gz" # Set the desired filename here
tar -czf "$TAR_FILE" -C /tmp/package . # Create tar from temp package directory
echo "Release created at $TAR_FILE"
- name: Upload release artifact
uses: actions/upload-artifact@v3
with:
name: release-artifact
path: release/kokofixcomputers/panel.tar.gz
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: "1.4.0"
name: "Release 1.4.0"
files: release/kokofixcomputers/panel.tar.gz # Specify the file to attach
draft: false # Set to true if you want to create a draft release
prerelease: false # Set to true if this is a pre-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions