Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
677029bb
Commit
677029bb
authored
Oct 15, 2021
by
suyanlong
Committed by
mdj33
Oct 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix ci and add manually auto publish release
parent
6fd32c30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
automake.yml
.github/workflows/automake.yml
+62
-0
No files found.
.github/workflows/automake.yml
0 → 100644
View file @
677029bb
# This is a basic workflow that is manually triggered
name
:
manually auto publish release
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on
:
workflow_dispatch
:
# Inputs the workflow accepts.
inputs
:
name
:
# Friendly description to be shown in the UI instead of 'name'
description
:
'
auto
make'
# Default value if no value is explicitly provided
default
:
'
push'
# Input has to be provided for the workflow to run
required
:
true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs
:
automake
:
name
:
automake
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang env
uses
:
actions/setup-go@v2
with
:
go-version
:
1.17
id
:
go
-
name
:
checkout repo
uses
:
actions/checkout@v2
with
:
fetch-depth
:
0
persist-credentials
:
false
# <--- this
-
name
:
compile binary
run
:
make all-arch
-
name
:
Upload artifact bin
uses
:
actions/upload-artifact@v2
with
:
name
:
chain33-artifact
path
:
build/*.tar
-
name
:
Semantic Release
uses
:
cycjimmy/semantic-release-action@v2
id
:
semantic
with
:
branch
:
master
extra_plugins
:
|
@semantic-release/changelog
@semantic-release/git
env
:
GH_TOKEN
:
${{ secrets.GH_TOKEN }}
-
name
:
Do something when a new release published
if
:
steps.semantic.outputs.new_release_published == 'true'
run
:
|
echo ${{ steps.semantic.outputs.new_release_version }}
echo ${{ steps.semantic.outputs.new_release_major_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment