Use package.json instead of manifest; use nerdbank versioning by default #3
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: 'Build' | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
artifacts: | ||
name : 'Create release' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Nerdbank.GitVersioning | ||
uses: dotnet/nbgv@latest | ||
setAllVars: true | ||
Check failure on line 16 in .github/workflows/distribute.yml GitHub Actions / BuildInvalid workflow file
|
||
stamp: true | ||
# Create a zip from what's in this repo | ||
- name: Archive Release | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'dist/stable.zip' | ||
exclusions: '*.git* /*node_modules/* .editorconfig dist version.json' | ||
command: "mkdir -p dist" | ||
# List all the files that have been created | ||
- name: 'List files' | ||
run: | | ||
find dist/ -maxdepth 2 -type f | ||
- uses: BetaHuhn/do-spaces-action@latest | ||
with: | ||
access_key: ${{ secrets.SPACE_ACCESS_KEY}} | ||
secret_key: ${{ secrets.SPACE_SECRET_KEY }} | ||
space_name: ${{ secrets.SPACE_NAME }} | ||
space_region: ${{ secrets.SPACE_REGION }} | ||
cdn_domain: ${{ secrets.SPACE_CDN_DOMAIN }} | ||
source: dist | ||
out_dir: configs |