-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: action to generate generated-sources.json
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Create generated-rources.json | ||
|
||
on: | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Install Antares | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: npm i --lockfile-version 2 --package-lock-only | ||
|
||
# Install flatpak-node-generator | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install pipx | ||
uses: CfirTsabari/actions-pipx@v1 | ||
|
||
- name: Clone flatpak-builder-tools repo and flatpak-node-generator | ||
run: | | ||
cd ../ | ||
git clone https://github.com/flatpak/flatpak-builder-tools.git | ||
cd flatpak-builder-tools/node | ||
pipx install . | ||
- name: Generate generated-sources.json | ||
run: | | ||
cd antares | ||
flatpak-node-generator npm -r package-lock.json | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: generated-sources | ||
retention-days: 3 | ||
path: | | ||
generated-sources.json |