Skip to content

Commit

Permalink
Merge pull request #6 from MKdir98/master
Browse files Browse the repository at this point in the history
Adds build workflow
  • Loading branch information
ProgramCrafter authored Oct 6, 2023
2 parents 2f4de53 + f77c55a commit 99513a4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/output.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Release

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install
- name: Build project
run: yarn blueprint build
- name: create zip file from build folder
run: zip -r -q build.zip build
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.vars.outputs.sha_short }}
release_name: Release ${{ steps.vars.outputs.sha_short }}
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: ./build.zip
asset_name: build.zip
asset_content_type: application/zip

0 comments on commit 99513a4

Please sign in to comment.