This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
Merge pull request #2 from z1g-project/dependabot/nuget/z1g-Browser/C… #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Builds | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
create_tag: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Git | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(Get-Date -Format 'MM-dd-yyyy')" | |
- name: Build z1g Project Hub Universal | |
run: dotnet build "z1g Project Hub Universal\z1g Project Hub Universal.vbproj" --configuration Release | |
- name: Publish z1g Project Hub Universal | |
run: dotnet publish "z1g Project Hub Universal\z1g Project Hub Universal.vbproj" --configuration Release --output ./publish | |
- name: Create ZIP file | |
run: | | |
7z a -tzip compiled-zips/z1g-project-hub.zip ./publish/* | |
mv compiled-zips/z1g-project-hub.zip compiled-zips/ | |
- name: Create tag | |
id: create_tag | |
run: | | |
echo "z1g-hub-nightly-${{ steps.date.outputs.date }}" > tag.txt | |
git tag -a -F tag.txt "z1g-hub-nightly-${{ steps.date.outputs.date }}" | |
git push origin "z1g-hub-nightly-${{ steps.date.outputs.date }}" | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: "z1g-hub-nightly-${{ steps.date.outputs.date }}" | |
release_name: "Nightly Build - ${{ steps.date.outputs.date }}" | |
draft: false | |
prerelease: true | |
- name: Upload compiled ZIP as 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: compiled-zips/z1g-project-hub.zip | |
asset_name: z1g-project-hub.zip | |
asset_content_type: application/zip |