Skip to content

Update main.yml

Update main.yml #22

Workflow file for this run

name: Create Release and Upload Assets
on:
push:
branches:
- '**'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3 # Aktualisiert auf v3
- name: Install zip
run: sudo apt-get install zip
- name: Zip .flo files
run: zip -r flo_files.zip **/*.flo
- name: Create Tag
id: create_tag
run: |
TAG_NAME=$(date +'%Y%m%d%H%M%S')
echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: Release ${{ env.TAG_NAME }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./flo_files.zip
asset_name: flo_files.zip
asset_content_type: application/zip