Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Reduce CI

Reduce CI #4

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
tags:
- 'v*'
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
if: false
strategy:
matrix:
# runner-os: [windows-latest, ubuntu-latest, macos-latest]
runner-os: [ubuntu-latest]
runs-on: ${{ matrix.runner-os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore src/SecretsMigrator.sln
- name: Build
run: dotnet build src/SecretsMigrator.sln --no-restore
publish:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
# needs: [ build ]
environment: PUBLISH_RELEASE
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build Artifacts
run: ./publish.ps1
shell: pwsh
env:
CLI_VERSION: ${{ github.ref }}
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body_path: ./RELEASENOTES.md
files: |
./dist/win-x64/secrets-migrator-windows-amd64.exe
./dist/linux-x64/secrets-migrator-linux-amd64
./dist/osx-x64/secrets-migrator-darwin-amd64