Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xLynxiummcx committed Jun 21, 2024
1 parent 93d8778 commit 03f442b
Showing 1 changed file with 33 additions and 41 deletions.
74 changes: 33 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,42 @@ on:
push:
tags:
- 'v*.*.*' # Trigger on version tags
workflow_dispatch: # Allows manual trigger of the workflow

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14' # Use the Node.js version you need

- name: Install dependencies
run: npm install

- name: Create ZIP file
run: |
mkdir -p release
zip -r release/pack.zip pack/fogs pack/biome_client.json
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Full Scale Automation
body: |
This release includes the following:
- Packed fogs
- biome_client.json
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release/pack.zip
asset_name: pack.zip
asset_content_type: application/zip

- name: Checkout repository
uses: actions/checkout@v2

- name: Create ZIP file
run: |
mkdir -p release
zip -r release/pack.zip pack/fogs pack/biome_client.json
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Full Scale Automation
body: |
This release includes the following:
- Packed fogs
- biome_client.json
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release/pack.zip
asset_name: pack.zip
asset_content_type: application/zip

0 comments on commit 03f442b

Please sign in to comment.