Skip to content

Commit

Permalink
automate workflow [Build]
Browse files Browse the repository at this point in the history
  • Loading branch information
Epic428 committed Dec 4, 2023
1 parent 27f927e commit ed2ff20
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
steps:
### Checkout Repo
- uses: actions/checkout@v4
with:
fetch-depth: 0

### Setup Node
- uses: actions/setup-node@v4
Expand All @@ -32,13 +30,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

### Set Build Version
- name: Set Build Version
id: build-version
run:
echo "BUILD_VERSION=`date +%y%j%H%M`" >> "$GITHUB_OUTPUT"

### Extract Docker Metadata
- name: Extract Docker Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: latest
tags: |
${{ steps.build-version.outputs.BUILD_VERSION }}
latest
### Build and Push Package
- name: Build and Push
Expand Down

0 comments on commit ed2ff20

Please sign in to comment.