mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-16 02:35:59 -07:00
Separated docker/web deploy
Fixed incorrect windows setup file path
This commit is contained in:
parent
f8a3c02367
commit
46377b15b9
1 changed files with 50 additions and 25 deletions
75
.github/workflows/build.yml
vendored
75
.github/workflows/build.yml
vendored
|
|
@ -326,28 +326,15 @@ jobs:
|
||||||
name: fladder-web
|
name: fladder-web
|
||||||
path: build/web
|
path: build/web
|
||||||
|
|
||||||
- name: Deploy to ghcr.io
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
uses: mr-smithers-excellent/docker-build-push@v6
|
|
||||||
with:
|
|
||||||
image: fladder
|
|
||||||
addLatest: true
|
|
||||||
multiPlatform: true
|
|
||||||
platform: linux/amd64,linux/arm64,linux/arm/v7
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build Github pages web
|
- name: Build Github pages web
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
run: flutter build web --base-href /${{ github.event.repository.name }}/ --release --build-number=$GITHUB_RUN_NUMBER
|
run: flutter build web --base-href /${{ github.event.repository.name }}/ --release --build-number=$GITHUB_RUN_NUMBER
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Archive web pages artifact
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
uses: actions/upload-artifact@v4.0.0
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions
|
name: fladder-web-pages
|
||||||
publish_dir: ./build/web
|
path: build/web
|
||||||
|
|
||||||
create_release:
|
create_release:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
|
|
@ -380,6 +367,11 @@ jobs:
|
||||||
name: fladder-windows-portable
|
name: fladder-windows-portable
|
||||||
path: fladder-windows-portable
|
path: fladder-windows-portable
|
||||||
|
|
||||||
|
- name: Compress Windows
|
||||||
|
run: |
|
||||||
|
cd fladder-windows-portable
|
||||||
|
zip -r ../Fladder-Windows-${{needs.fetch-info.outputs.version_name}}.zip .
|
||||||
|
|
||||||
- name: Download Windows installer artifact
|
- name: Download Windows installer artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -387,14 +379,7 @@ jobs:
|
||||||
path: fladder-windows-installer
|
path: fladder-windows-installer
|
||||||
|
|
||||||
- name: Rename Windows installer
|
- name: Rename Windows installer
|
||||||
run: |
|
run: mv fladder-windows-installer/fladder_setup.exe Fladder-Windows-${{needs.fetch-info.outputs.version_name}}-Setup.exe
|
||||||
cd fladder-windows-installer
|
|
||||||
mv fladder_setup.exe Fladder-Windows-${{needs.fetch-info.outputs.version_name}}-Setup.exe
|
|
||||||
|
|
||||||
- name: Compress Windows
|
|
||||||
run: |
|
|
||||||
cd fladder-windows-portable
|
|
||||||
zip -r ../Fladder-Windows-${{needs.fetch-info.outputs.version_name}}.zip .
|
|
||||||
|
|
||||||
- name: Download Artifacts iOS
|
- name: Download Artifacts iOS
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
@ -460,3 +445,43 @@ jobs:
|
||||||
Fladder-Web-${{needs.fetch-info.outputs.version_name}}.zip
|
Fladder-Web-${{needs.fetch-info.outputs.version_name}}.zip
|
||||||
Fladder-Linux-${{needs.fetch-info.outputs.version_name}}.zip
|
Fladder-Linux-${{needs.fetch-info.outputs.version_name}}.zip
|
||||||
Fladder-Linux-${{needs.fetch-info.outputs.version_name}}.flatpak
|
Fladder-Linux-${{needs.fetch-info.outputs.version_name}}.flatpak
|
||||||
|
|
||||||
|
release_web:
|
||||||
|
needs:
|
||||||
|
- fetch-info
|
||||||
|
- build-web
|
||||||
|
- create_release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
steps:
|
||||||
|
- name: Download Artifacts Web
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: fladder-web
|
||||||
|
path: build/web
|
||||||
|
|
||||||
|
- name: Deploy to ghcr.io
|
||||||
|
uses: mr-smithers-excellent/docker-build-push@v6
|
||||||
|
with:
|
||||||
|
image: fladder
|
||||||
|
addLatest: true
|
||||||
|
multiPlatform: true
|
||||||
|
platform: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Clean builds folder
|
||||||
|
run: rm -rf build/web
|
||||||
|
|
||||||
|
- name: Download Artifacts Web
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: fladder-web-pages
|
||||||
|
path: build/web
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions
|
||||||
|
publish_dir: ./build/web
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue