mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 17:47:00 -05:00
Remove gh pages deploy & reinstate netlify autodeploy (#6822)
* remove gh pages deploys now that netlify have removed prod deploys * release notes * thanks wabbit
This commit is contained in:
33
.github/workflows/docs-release.yml
vendored
33
.github/workflows/docs-release.yml
vendored
@@ -1,33 +0,0 @@
|
||||
name: Release Docs to Github Pages
|
||||
|
||||
# Release docs on every push to master
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'packages/docs/**'
|
||||
- '.github/workflows/docs-spelling.yml'
|
||||
- '.github/actions/docs-spelling/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
name: Deploy Docs
|
||||
if: github.event.repository.fork == false
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
|
||||
- name: Set up environment
|
||||
uses: ./.github/actions/setup
|
||||
with:
|
||||
download-translations: 'false'
|
||||
|
||||
- name: Docusaurus Deploy
|
||||
run: |
|
||||
GIT_USER=MikesGlitch \
|
||||
GIT_PASS=${{ secrets.DOCS_GITHUB_PAGES_DEPLOY }} \
|
||||
GIT_USER_NAME=github-actions[bot] \
|
||||
GIT_USER_EMAIL=github-actions[bot]@users.noreply.github.com \
|
||||
yarn deploy:docs
|
||||
46
.github/workflows/publish-nightly-edge.yml
vendored
46
.github/workflows/publish-nightly-edge.yml
vendored
@@ -1,46 +0,0 @@
|
||||
name: Deploy nightly Edge
|
||||
|
||||
# Publish nightly version of Edge - Runs every day at 23:00 UTC
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 23 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
env:
|
||||
CI: true
|
||||
|
||||
concurrency:
|
||||
group: nightly-edge-deploy
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
publish-latest-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Netlify CLI
|
||||
run: npm install netlify-cli@17.10.1 -g
|
||||
|
||||
- name: Get Latest Deploy ID
|
||||
id: get_deploy
|
||||
run: |
|
||||
DEPLOY_ID=$(netlify api listSiteDeploys --data '{ "site_id": "${{ secrets.NETLIFY_EDGE_SITE_ID }}", "production": true, "state": "ready", "branch": "master", "per_page": 1 }' | jq -r '.[0].id')
|
||||
|
||||
if [ -z "$DEPLOY_ID" ] || [ "$DEPLOY_ID" = "null" ]; then
|
||||
echo "::error::No valid deploy found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "deploy_id=$DEPLOY_ID" >> $GITHUB_OUTPUT
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_API_TOKEN }}
|
||||
|
||||
- name: Restore and Publish Deploy
|
||||
# restoreSiteDeploy API call can bypass Netlify's lock function
|
||||
run: |
|
||||
netlify api restoreSiteDeploy --data '{ "site_id": "${{ secrets.NETLIFY_EDGE_SITE_ID }}", "deploy_id": "${{ steps.get_deploy.outputs.deploy_id }}" }'
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_API_TOKEN }}
|
||||
6
upcoming-release-notes/6822.md
Normal file
6
upcoming-release-notes/6822.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Maintenance
|
||||
authors: [MikesGlitch]
|
||||
---
|
||||
|
||||
Remove GitHub pages deploys in favor of Netlify
|
||||
Reference in New Issue
Block a user