Skip to content

CI workflow

CI workflow #1

Workflow file for this run

on:
push:
tags:
- "v*"
name: Create Release
jobs:
deploy:
if: startsWith(github.ref, 'refs/tags/v')
name: Create Release
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: true
prerelease: false
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ci.yml
workflow_conclusion: success
- name: Package
run: |
tar -c -a -f stfc-community-patch.zip -C package *.dll
- name: Upload Community Patch
id: upload-patch
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./package/stfc-community-patch.zip
asset_name: stfc-community-patch.zip
asset_content_type: application/zip