Merge pull request #52 from simplyblock-io/cpu-mask-calculator-update #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Development Builder | |
on: | |
push: | |
branches: | |
- 'main' | |
permissions: | |
actions: write | |
contents: write | |
id-token: write | |
concurrency: | |
group: "documentation" | |
cancel-in-progress: false | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout Repository" | |
uses: actions/checkout@v4 | |
- name: "Prepare Documentation Builder" | |
run: | | |
./doc-builder build-image | |
- name: "Build Documentation Test" | |
run: | | |
./doc-builder update-repositories | |
./doc-builder build | |
dev-deployment: | |
runs-on: ubuntu-latest | |
needs: build-test | |
steps: | |
- name: "Checkout Repository" | |
uses: actions/checkout@v4 | |
with: | |
token: '${{ github.token }}' | |
- name: "Prepare Documentation Builder" | |
run: | | |
./doc-builder build-image | |
- name: "Prepare Documentation Dev Deployment" | |
run: | | |
sed -i -r "s|(site_url: .*)|\1dev/|g" ./mkdocs.yml | |
cat ./mkdocs.yml | |
./doc-builder update-repositories | |
./doc-builder build | |
- name: "Upload Documentation" | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.ftp_server }} | |
username: ${{ secrets.ftp_username }} | |
password: ${{ secrets.ftp_password }} | |
server-dir: /dev/ | |
local-dir: ./site/ |