Skip to content

Also try to get git user name and call ConvertTo-Json #14

Also try to get git user name and call ConvertTo-Json

Also try to get git user name and call ConvertTo-Json #14

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# 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
- name: Patch vss-extension.json
uses: onlyutkarsh/patch-files-action@v1.0.3
with:
files: vss-extension.json
patch-syntax: = /version => "4.0.${{ github.run_number }}"
fail-if-no-files-patched: true
- name: Patch task.json
uses: onlyutkarsh/patch-files-action@v1.0.3
with:
files: ElmahIoDeploymentNotification/task.json
patch-syntax: |
= /version/Major => "4"
= /version/Minor => "0"
= /version/Patch => "${{ github.run_number }}"
fail-if-no-files-patched: true
- name: TfxInstaller
uses: Maetis/github-action-tfxinstaller@v1.0.0-pre
- name: Build vsix
run: tfx extension create --manifest-globs vss-extension.json
- name: Create the Release
id: create_release
if: ${{ github.event_name == 'push' }}
uses: actions/create-release@v1.1.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: 4.0.${{ github.run_number }}
release_name: Release 4.0.${{ github.run_number }}
draft: false
- name: Upload vsix
if: ${{ github.event_name == 'push' }}
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./elmahio.deploy-tasks-4.0.${{ github.run_number }}.vsix
asset_name: elmahio.deploy-tasks-4.0.${{ github.run_number }}.vsix
asset_content_type: application/zip