Skip to content

Commit

Permalink
Update CI to release build
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Mors committed Feb 24, 2021
1 parent 8937e78 commit 1a0186b
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,31 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Build files
run: ./build.sh
- uses: actions/checkout@v2
- name: Build files
run: |
./build.sh
zip --junk-paths release public_html/*
- 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 }}
draft: false
prerelease: false
- name: Upload Release build
id: upload-release-build
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release.zip
asset_name: release.zip
asset_content_type: application/zip

0 comments on commit 1a0186b

Please sign in to comment.