Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
skibum55 authored Oct 29, 2020
1 parent 060d37a commit 9ae2a9a
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ skibum55-build-1 ]
tags:
- 'v*.*.*'
# pull_request:
# branches: [ master ]
# tags:
# - 'v*.*.*'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a few command using the runners shell
- name: Run a multi-line script
run: |
# pwd debug
tar -cvzf unlocker.tgz etc
tar -cvzf esxi-unlocker-3.0.${{ github.run_number }}.tgz *.*
# ls -al more debug
# release automation.gz
- 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 }}.${{ github.run_number }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: true
prerelease: true
- 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: ./readme.txt
asset_name: readme.txt
asset_content_type: text/plain
- name: Upload Release Asset2
id: upload-release-asset2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./esxi-unlocker-3.0.${{ github.run_number }}.tgz
asset_name: esxi-unlocker-3.0.${{ github.run_number }}.tgz
asset_content_type: application/zip

0 comments on commit 9ae2a9a

Please sign in to comment.