Skip to content

updated gh workflow - upload-artifact now v4 #4

updated gh workflow - upload-artifact now v4

updated gh workflow - upload-artifact now v4 #4

Workflow file for this run

name: Build
on:
push:
tags:
- '*.*.*'
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Package
run: |
echo packaging...
tar -czf release-${{ env.RELEASE_VERSION }}.tar.gz microservices
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: release-${{ env.RELEASE_VERSION }}
path: release-${{ env.RELEASE_VERSION }}.tar.gz
- name: Make Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: release-${{ env.RELEASE_VERSION }}
files: |
release-${{ env.RELEASE_VERSION }}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}