From e040b90074cbc740729a3b1cd15f6d4b3394cd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Thu, 3 Nov 2022 20:05:04 +0100 Subject: [PATCH] =?UTF-8?q?ci(sestaven=C3=AD):=20vytvo=C5=99it=20CI=20pro?= =?UTF-8?q?=20sestaven=C3=AD=20a=20publikov=C3=A1n=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-rel.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-rel.yml diff --git a/.github/workflows/build-rel.yml b/.github/workflows/build-rel.yml new file mode 100644 index 0000000..f5b3633 --- /dev/null +++ b/.github/workflows/build-rel.yml @@ -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