Skip to content

A local-first personal finance app

Github action to automatically deploy a release image to Netlify (#2750)

shall0passbfda42a2beb4
diff --git a/.github/workflows/netlify-release.yml b/.github/workflows/netlify-release.yml
new file mode 100644
index 0000000000..003947b60f
--- /dev/null
+++ b/.github/workflows/netlify-release.yml
@@ -0,0 +1,43 @@
+name: Deploy Netlify Release
+
+defaults:
+ run:
+ shell: bash
+
+env:
+ CI: true
+
+on:
+ push:
+ tags:
+ - v**
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: false
+
+jobs:
+ build-and-deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Repository Checkout
+ uses: actions/checkout@v4
+
+ - name: Set up environment
+ uses: ./.github/actions/setup
+
+ - name: Install Netlify
+ run: npm install [email protected] -g
+
+ - name: Build Actual
+ run: ./bin/package-browser
+
+ - name: Deploy to Netlify
+ id: netlify_deploy
+ run: |
+ netlify deploy \
+ --dir packages/desktop-client/build \
+ --site ${{ secrets.NETLIFY_SITE_ID }} \
+ --auth ${{ secrets.NETLIFY_API_TOKEN }} \
+ --filter @actual-app/web \
+ --prod
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 6209367535..f4243f680b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,3 +46,6 @@ bundle.mobile.js.map
# Misc
.#*
+
+# Local Netlify folder
+.netlify
diff --git a/upcoming-release-notes/2750.md b/upcoming-release-notes/2750.md
new file mode 100644
index 0000000000..1f4fc1f23d
--- /dev/null
+++ b/upcoming-release-notes/2750.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [shall0pass]
+---
+
+Add Github workflow to publish release to demo.actualbudget.org.