Skip to content

Commit

Permalink
adding cd
Browse files Browse the repository at this point in the history
  • Loading branch information
lord-skinner committed Dec 21, 2024
1 parent 899f78f commit e53611f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Empty file removed .github/.gitkeep
Empty file.
41 changes: 41 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CD

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.17'

- name: Get version
id: get_version
run: |
echo "VERSION=$(grep 'const Version' version/version.go | awk -F\" '{print $2}')" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload release asset
uses: softprops/action-gh-release@v1
with:
files: dg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e53611f

Please sign in to comment.