Skip to content

Commit c0fccbe

Browse files
committed
push ot s3 too as github release downloads fails a lot in build systems
1 parent 0b7cf8c commit c0fccbe

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.github/workflows/script.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Schedule Node.js LTS download
22

33
on:
4-
schedule:
5-
- cron: '0 * * * *' # Runs every hour
4+
push:
5+
branches:
6+
- main
7+
8+
#on:
9+
# schedule:
10+
# - cron: '0 * * * *' # Runs every hour
11+
612
jobs:
713
run-node-script:
814
runs-on: ubuntu-latest
@@ -39,6 +45,17 @@ jobs:
3945
if: env.new_version != ''
4046
run: node src/download.js
4147

48+
- name: Upload Node To S3
49+
uses: keithweaver/[email protected]
50+
with:
51+
command: cp
52+
source: ./src/assets/
53+
destination: s3://phnode/
54+
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
55+
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
56+
aws_region: us-east-1
57+
flags: --recursive
58+
4259
- name: Create Draft Release
4360
if: env.new_version != ''
4461
id: create_release

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ src-tauri/phnode-*
1616
src-tauri/tauri-local.conf.json
1717
phoenix
1818

19+
src/assets
20+
1921
node_modules
2022
dist
2123
dist-ssr

package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)