ci(sestavení): vytvořit CI pro sestavení a publikování

This commit is contained in:
Matyáš Caras 2022-11-03 20:05:04 +01:00
parent eada9c6511
commit e040b90074

35
.github/workflows/build-rel.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Sestavit pro vydání
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.8.0
- name: Install dependencies
run: flutter pub get
- name: Build
run: flutter build web --release
- name: Zabalit do archivu
uses: vimtor/action-zip@v1
with:
files: build/web
recursive: false
- name: Nahrát
uses: svenstaro/upload-release-action@2.3.0
with:
file: ${{ github.workspace }}/result.zip
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web