Skip to content

Commit e507151

Browse files
committed
Test for release
This is a sub massage.
1 parent 32a4224 commit e507151

File tree

7 files changed

+24
-15
lines changed

7 files changed

+24
-15
lines changed

.github/workflows/autoRelease.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
name: Auto Release
22

3-
on:
4-
push:
5-
tags:
6-
- '*'
3+
on: push
74

85
jobs:
9-
deploy:
6+
release:
107
runs-on: ubuntu-latest
118
steps:
12-
- uses: actions/checkout@v1
13-
- name: Upload release
14-
uses: yakuhzi/action-release@v1
9+
- name: Checkout
10+
uses: actions/checkout@v1
11+
- name: Build CHANGELOG
12+
run: echo ${{ github.sha }} > CHANGELOG.txt
13+
- name: Show CHANGELOG
14+
run: cat CHANGELOG.txt
15+
- name: Release
16+
uses: softprops/action-gh-release@v1
17+
if: startsWith(github.ref, 'refs/tags/')
1518
with:
16-
file: release-upload/needUpload.js
17-
changelog: release-upload/CHANGELOG.md
19+
body_path: CHANGELOG.txt
20+
files: |
21+
release-upload/needUpload.js
1822
env:
1923
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-

.github/workflows/hello.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Hello world
33
on: [push]
44

55
jobs:
6-
build:
6+
hello:
77
runs-on: ubuntu-latest
88

99
steps:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### v0.0.9
2+
* For Test
3+
4+
[Earlier Log](https://github.com/cycjimmy/try-github-actions/releases)
5+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# try-github-actions
2+
![](https://github.com/cycjimmy/try-github-actions/workflows/Node%20Test%20CI/badge.svg)
3+
24
Try github actions

deploy-dir/needDeploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// This is an empty file for testing.
2-
2+
console.log('test');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "try-github-actions",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Try github actions",
55
"scripts": {
66
"test": "jest"

release-upload/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)