File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Batch process year
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ year :
6+ description : ' Year'
7+ required : true
8+ env :
9+ GH_AUTH_TOKEN : ${{ secrets.GH_AUTH_TOKEN }}
10+ jobs :
11+ batch-process-year :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout 🛎️
15+ uses : actions/checkout@v3
16+
17+ - name : Install Rust 🦀
18+ uses : dtolnay/rust-toolchain@v1
19+ with :
20+ components : rustfmt, clippy
21+ toolchain : stable
22+
23+ - name : Lint 🧹
24+ run : |
25+ cargo fmt --all -- --check
26+ cargo clippy -- -D warnings
27+
28+ - name : Test 🔨
29+ run : cargo test
30+
31+ - name : Run 🤖
32+ run : cargo run -- batch ${{ github.event.inputs.year }}
Original file line number Diff line number Diff line change 1+ name : Fly Deploy
2+ on :
3+ push :
4+ branches :
5+ - main
6+ env :
7+ FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
8+ jobs :
9+ deploy :
10+ name : Deploy app
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ - uses : superfly/flyctl-actions/setup-flyctl@master
15+ - run : |
16+ cd cache
17+ flyctl deploy --remote-only
Original file line number Diff line number Diff line change 1+ name : Deploy site
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout 🛎️
11+ uses : actions/checkout@v3
12+
13+ - name : Install ⚙️
14+ run : |
15+ cd web
16+ npm install
17+
18+ - name : Build 🛠
19+ run : |
20+ cd web
21+ npm run build
22+
23+ - name : Upload Artifacts 🔺
24+ uses : actions/upload-artifact@v1
25+ with :
26+ name : site
27+ path : web/dist
28+
29+ deploy :
30+ needs : [build]
31+ runs-on : ubuntu-latest
32+ steps :
33+ - name : Checkout 🛎️
34+ uses : actions/checkout@v3
35+
36+ - name : Download Artifacts 🔻
37+ uses : actions/download-artifact@v1
38+ with :
39+ name : site
40+
41+ - name : Deploy 🚀
42+ uses : JamesIves/github-pages-deploy-action@v4
43+ with :
44+ branch : deploy
45+ folder : " site"
Original file line number Diff line number Diff line change 1+ name : Hide days from results
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ date :
6+ description : ' Dates (comma-separated YYYY-MM-DD)'
7+ required : true
8+ env :
9+ SUPABASE_REST_URL : ${{ secrets.SUPABASE_REST_URL }}
10+ SUPABASE_URL : ${{ secrets.SUPABASE_URL }}
11+ SUPABASE_PUBLIC_API_KEY : ${{ secrets.SUPABASE_PUBLIC_API_KEY }}
12+ GH_AUTH_TOKEN : ${{ secrets.GH_AUTH_TOKEN }}
13+ jobs :
14+ hide-from-results :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout 🛎️
18+ uses : actions/checkout@v3
19+
20+ - name : Install Rust 🦀
21+ uses : dtolnay/rust-toolchain@v1
22+ with :
23+ components : rustfmt, clippy
24+ toolchain : stable
25+
26+ - name : Lint 🧹
27+ run : |
28+ cargo fmt --all -- --check
29+ cargo clippy -- -D warnings
30+
31+ - name : Test 🔨
32+ run : cargo test
33+
34+ - name : Run 🤖
35+ run : cargo run -- exclude ${{ github.event.inputs.date }}
Original file line number Diff line number Diff line change 1+ name : Process images for month
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ year :
6+ description : ' Year'
7+ required : true
8+ month :
9+ description : ' Month'
10+ required : true
11+ env :
12+ SUPABASE_REST_URL : ${{ secrets.SUPABASE_REST_URL }}
13+ SUPABASE_URL : ${{ secrets.SUPABASE_URL }}
14+ SUPABASE_PUBLIC_API_KEY : ${{ secrets.SUPABASE_PUBLIC_API_KEY }}
15+ APOD_API_URL : ${{ secrets.APOD_API_URL }}
16+ APOD_API_KEY : ${{ secrets.APOD_API_KEY }}
17+ jobs :
18+ process-images-for-month :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Checkout 🛎️
22+ uses : actions/checkout@v3
23+
24+ - name : Install Rust 🦀
25+ uses : dtolnay/rust-toolchain@stable
26+ with :
27+ components : rustfmt, clippy
28+ toolchain : stable
29+
30+ - name : Lint 🧹
31+ run : |
32+ cargo fmt --all -- --check
33+ cargo clippy -- -D warnings
34+
35+ - name : Test 🔨
36+ run : cargo test
37+
38+ - name : Run 🤖
39+ run : cargo run -- ${{ github.event.inputs.year }} ${{ github.event.inputs.month }}
You can’t perform that action at this time.
0 commit comments