Skip to content

Commit e3ea06a

Browse files
committed
add CI test for relaseing files
1 parent 3a65c90 commit e3ea06a

3 files changed

Lines changed: 31 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on:
2+
push:
3+
4+
name: Test Release Files
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Setup env
10+
env:
11+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
- run: make release

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ package:
33
zip -r RAScript.sublime-package rascript.tmLanguage
44

55
install: package
6-
cp RAScript.sublime-package ~/.config/sublime-text/Installed\ Packages
6+
cp RAScript.sublime-package ~/.config/sublime-text/Installed\ Packages
7+
8+
release: package
9+
go run release.go

release.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"os"
6+
)
7+
8+
func main() {
9+
fmt.Println("hello world")
10+
token := os.Getenv("GH_TOKEN")
11+
if token == "" {
12+
fmt.Println("GH_TOKEN not set")
13+
os.Exit(1)
14+
}
15+
}

0 commit comments

Comments
 (0)