]> Nishi Git Mirror - dataworks.git/commitdiff
use github pages
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 12 Jun 2024 07:32:08 +0000 (07:32 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 12 Jun 2024 07:32:08 +0000 (07:32 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@274 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

.github/workflows/build.yml

index ac5e611acb46063790fb2760575e9afa900218da..5ecc3af07646c10ac51a43fc6c02a20067c6fea1 100644 (file)
@@ -5,6 +5,10 @@ on:
   schedule:
   - cron: "0 */6 * * *"
 
+concurrency:
+  group: "pages"
+  cancel-in-progress: true
+
 jobs:
   build-generic:
 
@@ -12,8 +16,14 @@ jobs:
 
     runs-on: ubuntu-latest
 
+    environment:
+      name: github-pages
+      url: ${{ steps.deployment.outputs.page_url }}
+
     permissions:
       contents: write
+      pages: write
+      id-token: write
 
     steps:
     - name: Give tar root suid
@@ -45,6 +55,14 @@ jobs:
       run: make clean
     - name: Make for linux64
       run: make YACC=byacc -j3 archive
+    - name: Setup Pages
+      uses: actions/configure-pages@v1
+    - name: Upload pages
+      uses: actions/upload-pages-artifact@v1
+      with:
+        path: "Document/doc/html"
+    - name: Deploy
+      uses: actions/deploy-pages@main
     - name: Rename to -linux64
       run: mv dataworks.zip dataworks-linux64.zip && mv dataworks.tar.gz dataworks-linux64.tar.gz && mv Client/dataworks dataworks-linux64 && mv Server/dataworks_server dataworks-server-linux64
     - name: Make sure it is clean (win32)