Skip to content

Commit

Permalink
feat: add ci to project
Browse files Browse the repository at this point in the history
  • Loading branch information
logicalangel committed Aug 22, 2024
1 parent 9105cce commit 0156c26
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
update_release_draft:
build:
runs-on: ubuntu-latest
steps:
# Checkout
Expand Down Expand Up @@ -39,4 +39,51 @@ jobs:
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
path: dynamicpixels-unity.zip
path: dynamicpixels-unity.zip

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false

release:
name: Create Release
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: Unity Package

- name: Create GitHub 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 }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dynamicpixels-unity.zip
asset_name: dynamicpixels-unity.zip
asset_content_type: application/zip

0 comments on commit 0156c26

Please sign in to comment.