Skip to content

Commit 6cc57e1

Browse files
authored
Merge pull request #23 from SoecJan/dev
Dev
2 parents 7165d9f + 82fd53a commit 6cc57e1

File tree

3 files changed

+2639
-2
lines changed

3 files changed

+2639
-2
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Documentation
2+
3+
on:
4+
push: {}
5+
6+
jobs:
7+
documentation:
8+
name: Generate Documentation HTML
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
lfs: true
14+
15+
- uses: mattnotmitt/doxygen-action@v1
16+
with:
17+
working-directory: './'
18+
doxyfile-path: './Doxyfile'
19+
20+
- uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
personal_token: ${{ secrets.PERSONAL_TOKEN }}
23+
external_repository: SoecJan/soecjan.github.io
24+
keep_files: true
25+
publish_branch: master
26+
publish_dir: ./public

.github/workflows/main.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build project
22

33
on:
4-
pull_request: {}
4+
pull_request: { branches: [master] }
55
push: { branches: [master] }
66
#push: {}
77

@@ -85,7 +85,36 @@ jobs:
8585
projectPath: ${{ matrix.projectPath }}
8686
unityVersion: ${{ matrix.unityVersion }}
8787
targetPlatform: ${{ matrix.targetPlatform }}
88+
8889
- uses: actions/upload-artifact@v1
8990
with:
90-
name: Build
91+
name: PolyTycoon-${{github.run_id}}
92+
path: build
93+
94+
- name: Archive Release
95+
uses: thedoctor0/zip-release@master
96+
with:
97+
filename: 'PolyTycoon-${{github.run_id}}.zip'
9198
path: build
99+
100+
# Release
101+
- name: Create Release
102+
id: create_release
103+
uses: actions/create-release@v1
104+
env:
105+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106+
with:
107+
tag_name: ${{github.run_id}}
108+
release_name: Release ${{github.run_id}}
109+
draft: false
110+
prerelease: false
111+
- name: Upload Release Asset
112+
id: upload-release-asset
113+
uses: actions/upload-release-asset@v1
114+
env:
115+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116+
with:
117+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
118+
asset_path: ./PolyTycoon-${{github.run_id}}.zip
119+
asset_name: PolyTycoon-${{github.run_id}}.zip
120+
asset_content_type: application/zip

0 commit comments

Comments
 (0)