This repository has been archived by the owner on Jan 11, 2025. It is now read-only.
Deprecate Script (because it's inbuilt now) #480
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master, main] | |
pull_request: | |
branches: [master, main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Build | |
run: | | |
npm run build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: raid-chat-alert.js # TODO: Read from package.json | |
path: dist/raid-chat-alert.js | |
create-release: | |
needs: build | |
runs-on: ubuntu-latest | |
if: (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')) | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # allows for tags access | |
- uses: actions/download-artifact@v4 | |
name: Download compiled JS file | |
with: | |
name: raid-chat-alert.js # TODO: Read from package.json | |
path: release-artifacts/ | |
- name: Create release | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
replacesArtifacts: true | |
allowUpdates: true | |
artifactErrorsFailBuild: true | |
artifacts: "release-artifacts/*" | |
body: ${{ github.event.head_commit.message }} | |
prerelease: true | |
name: Nightly Release | |
tag: nightly-build | |
- name: Update nightly-build tag | |
run: | | |
git tag -f nightly-build | |
git push -f origin nightly-build | |
shell: bash |