Skip to content

Commit 2c2a01c

Browse files
committed
Actions: Add netlify push action
Signed-off-by: kingbri <bdashore3@proton.me>
1 parent 538b318 commit 2c2a01c

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/static.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy pip index to Netlify
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["master"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+
concurrency:
15+
group: "netlify"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
# Single deploy job since we're just deploying
20+
netlify-deploy:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
lfs: true
27+
path: dist
28+
- name: Publish
29+
uses: netlify/actions/cli@master
30+
with:
31+
args: deploy --dir=dist
32+
env:
33+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
34+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
.DS_Store
2+
3+
# Local Netlify folder
4+
.netlify

0 commit comments

Comments
 (0)