Skip to content

build: exclude /scripts/* from release workflow #4

build: exclude /scripts/* from release workflow

build: exclude /scripts/* from release workflow #4

Workflow file for this run

name: Publish Release
on:
push:
tags:
- "*"
env:
PROJECT_NAME: better-fletching-table
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Latest Tag
id: get_tag
run: |
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# VERSION: ${{ github.ref }}
# with:
# tag_name: ${{ github.ref }}
# release_name: ${{ github.ref }}
# draft: false
# prerelease: false
- name: Archive Binaries
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: ${{ env.PROJECT_NAME }}-dpv${{ steps.get_tag.outputs.tag_name }}.zip
exclusions: "**.git* /scripts/* **.jpeg notes.md"
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.PROJECT_NAME }}-dpv${{ steps.get_tag.outputs.tag_name }}.zip
README.md
LICENSE
# - name: Upload zip file
# id: upload-zip
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./${{ env.PROJECT_NAME }}.zip
# asset_name: ${{ env.PROJECT_NAME }}-${{ steps.build.outputs.tag_name }}.zip
# asset_content_type: application/zip