Skip to content

Commit 632f45e

Browse files
committed
chore: set workflow structure
1 parent df9cb31 commit 632f45e

File tree

1 file changed

+39
-5
lines changed

1 file changed

+39
-5
lines changed

.github/workflows/main.yaml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,27 @@ jobs:
2727
with:
2828
name: updatesite
2929
path: com.developer.nefarious.zjoule.updatesite/target/repository/
30-
31-
documentation:
32-
# needs: deploy
30+
31+
release:
32+
needs: release
3333
runs-on: ubuntu-latest
3434
# if: github.ref == 'refs/heads/main'
35+
steps:
36+
37+
- name: Download updatesite
38+
uses: actions/download-artifact@v3
39+
with:
40+
name: updatesite
3541

42+
43+
44+
45+
javadoc:
46+
needs: release
47+
runs-on: ubuntu-latest
48+
# if: github.ref == 'refs/heads/main'
3649
steps:
50+
3751
- name: Checkout code
3852
uses: actions/checkout@v3
3953

@@ -52,5 +66,25 @@ jobs:
5266
- name: Upload JavaDoc
5367
uses: actions/upload-artifact@v3
5468
with:
55-
name: javadoc
56-
path: com.developer.nefarious.zjoule.plugin/target/reports/apidocs/
69+
name: documentation
70+
path: com.developer.nefarious.zjoule.plugin/target/reports/apidocs/
71+
72+
publish:
73+
needs: javadoc
74+
runs-on: ubuntu-latest
75+
# if: github.ref == 'refs/heads/main'
76+
permissions:
77+
contents: write
78+
steps:
79+
80+
- name: Download JavaDoc
81+
uses: actions/download-artifact@v3
82+
with:
83+
name: documentation
84+
85+
# - name: Deploy to GitHub Pages
86+
# uses: peaceiris/actions-gh-pages@v4
87+
# with:
88+
# github_token: ${{ secrets.GITHUB_TOKEN }}
89+
# publish_dir: .
90+
# publish_dir: ./public

0 commit comments

Comments
 (0)