mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
chore: remove GitHub pages
This commit is contained in:
parent
7c72e76aff
commit
926f0dbf43
|
@ -1,31 +0,0 @@
|
||||||
name: Azure Static Web Apps CI/CD
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- 'docs/**'
|
|
||||||
- 'themes/**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_and_deploy_job:
|
|
||||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Build and Deploy Job
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Build And Deploy
|
|
||||||
id: builddeploy
|
|
||||||
uses: Azure/static-web-apps-deploy@v1
|
|
||||||
with:
|
|
||||||
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_MEADOW_063E9BA03 }}
|
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
|
|
||||||
action: "upload"
|
|
||||||
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
|
|
||||||
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
|
|
||||||
app_location: "/docs" # App source code path
|
|
||||||
api_location: "api" # Api source code path - optional
|
|
||||||
output_location: "build" # Built app content directory - optional
|
|
45
.github/workflows/docs.yml
vendored
45
.github/workflows/docs.yml
vendored
|
@ -1,4 +1,5 @@
|
||||||
name: Build and Deploy
|
name: Azure Static Web Apps CI/CD
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -6,34 +7,24 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- 'themes/**'
|
- 'themes/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build_and_deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Build and Deploy
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout 🛎️
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2.3.1
|
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
submodules: true
|
||||||
- name: Install Go
|
- name: Build And Deploy 🚀
|
||||||
uses: actions/setup-go@v2
|
id: builddeploy
|
||||||
|
uses: Azure/static-web-apps-deploy@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_MEADOW_063E9BA03 }}
|
||||||
- name: Build oh-my-posh 🎨
|
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
|
||||||
run: |
|
action: "upload"
|
||||||
cd src
|
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
|
||||||
go build -o ./bin/oh-my-posh
|
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
|
||||||
cd ..
|
app_location: "/docs" # App source code path
|
||||||
- name: Install and Build 🔧
|
api_location: "api" # Api source code path - optional
|
||||||
run: |
|
output_location: "build" # Built app content directory - optional
|
||||||
export PATH="$PWD/src/bin:$PATH"
|
|
||||||
cd docs
|
|
||||||
npm install
|
|
||||||
npm run themes
|
|
||||||
npm run build
|
|
||||||
- name: Deploy 🚀
|
|
||||||
uses: JamesIves/github-pages-deploy-action@3.6.2
|
|
||||||
with:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
BRANCH: gh-pages # The branch the action should deploy to.
|
|
||||||
FOLDER: docs/build # The folder the action should deploy.
|
|
||||||
CLEAN: true # Automatically remove deleted files from the deploy branch
|
|
||||||
|
|
Loading…
Reference in a new issue