Skip to content

Commit 0bb42ee

Browse files
Run addurl.js in GitHub Actions
1 parent 4417888 commit 0bb42ee

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
if: steps.node-modules-cache.outputs.cache-hit != 'true'
4141
run: npm install
4242

43+
- name: Add URL to source files
44+
run: node addurl.js --url ${{ secrets.SITE_URL }}
45+
env:
46+
NODE_OPTIONS: --unhandled-rejections=warn
47+
4348
- name: Install Snapcraft
4449
if: steps.snapcraft-cache.outputs.cache-hit != 'true' && runner.os == 'Linux'
4550
run: |
@@ -137,4 +142,4 @@ jobs:
137142
uses: actions/upload-artifact@v4
138143
with:
139144
name: Linux Portable Files
140-
path: dist/linux-unpacked
145+
path: dist/linux-unpacked

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Join the [Discord Server](https://discord.gg/cHGz362sdC) for the active communit
2020

2121
- Run `nvm use` to switch to the node version specified in .nvmrc
2222
- Run `npm i` to install all necessary packages
23-
- Run `node addurl.js` and type in the website URL, the launcher is supposed to open. This is a one-time operation that should only be performed if you are not using GitHub actions.
23+
- Run `node addurl.js` and type in the website URL, the launcher is supposed to open. This is a one-time operation that should only be performed if you are not using GitHub Actions. See [Configure GitHub Actions](#configure-github-actions) if using GitHub Actions
2424
- Run `npm run dist` to build the project
2525
- The built files will be available in the dist folder.
2626

@@ -29,3 +29,7 @@ Join the [Discord Server](https://discord.gg/cHGz362sdC) for the active communit
2929
- Run `nvm use` to switch to the node version specified in .nvmrc
3030
- Run `npm i` to install all necessary packages
3131
- Run `npm run dev` to start the electron development server
32+
33+
### Configure GitHub Actions
34+
35+
- Add an actions secret called SITE_URL containing the URL of the website, which is supposed to be opened by the launcher

0 commit comments

Comments
 (0)