Skip to content

Commit

Permalink
Clean up for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-K2 committed Apr 24, 2023
1 parent f13d8fd commit 57fe14d
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
name: Publish Documentation

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
# If a job is already running cancel it
concurrency:
group: "pages"
cancel-in-progress: true

jobs:



# Build job
build:
runs-on: ubuntu-latest
steps:
Expand All @@ -34,7 +26,7 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Generate Documentation generate script
- name: Generate Documentation through generate.sh
run: |
chmod +x ./extras/generate.sh
./extras/generate.sh
Expand All @@ -49,7 +41,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v1

# Deployment job
deploy:
environment:
name: github-pages
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Pre-release

on:
push:
branches: [ "master" ]

workflow_dispatch:

jobs:
prerelease:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build the Binary
run: go build -v
- name: Release Binary
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: "pre-release"
title: "Pre-release"
files: |
gomp
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Tag

on:
push:
tags:
- "v*"

workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build the Binary
run: go build -v
- name: Release Binary
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "${{ github.ref_name }}"
files: |
gomp

0 comments on commit 57fe14d

Please sign in to comment.