Skip to content

Commit

Permalink
fix: workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkor committed Dec 16, 2024
1 parent eb807da commit 5f7fc6e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,35 @@ name: Release
on:
push:
branches:
- master
- main

jobs:
release:
name: Build GitHub Action
runs-on: ubuntu-latest
container: node:16
container: node:20
steps:
- name: Install packages
run: |
apt-get update
apt-get install -y rsync
- uses: actions/checkout@v3
- name: Install dependencies
run: npm ci -q
- name: Build release
run: |
npm run lint
npm run build
npm run pack
- name: Copy files to release
run: |
mkdir release
cp LICENSE release/
cp README.md release/
cp action.yml release/
cp -R dist/ release/dist/
- name: Push changes to the branch
uses: JamesIves/[email protected]
with:
branch: release
folder: release
- name: Install packages
run: |
apt-get update
apt-get install -y rsync
- uses: actions/checkout@v3
- name: Install dependencies
run: npm ci -q
- name: Build release
run: |
npm run lint
npm run build
npm run pack
- name: Copy files to release
run: |
mkdir release
cp LICENSE release/
cp README.md release/
cp action.yml release/
cp -R dist/ release/dist/
- name: Push changes to the branch
uses: JamesIves/[email protected]
with:
branch: release
folder: release
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
[ ]
- name: Stop the discovery 🛑
id: stop
uses: NeuraLegion/stop-discovery@main
uses: NeuraLegion/stop-discovery@release
with:
api_token: ${{ secrets.BRIGHTSEC_TOKEN }}
discovery: ${{ steps.discovery.outputs.id }}

0 comments on commit 5f7fc6e

Please sign in to comment.