Commit 2260384 1 parent d2f3fdb commit 2260384 Copy full SHA for 2260384
File tree 2 files changed +18
-27
lines changed
2 files changed +18
-27
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Egg
1
+ name : Publish
2
2
3
3
on :
4
- workflow_dispatch :
5
- inputs :
6
- version :
7
- description : " Version"
8
- required : true
9
4
release :
10
5
types : [published]
11
6
12
7
jobs :
8
+ update-readme :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - run : echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/tags/*}
13
+ - run : |
14
+ cat ./README.md | sed -e "s/https\:\/\/deno.land\/x\/functional\@[v0-9\.]*/https\:\/\/deno.land\/x\/functional\@${RELEASE_VERSION}/" | tee ./README.md > /dev/null
15
+ cat ./README.md | sed -e "s/https\:\/\/x.nest.land\/functional\@[v0-9\.]*/https\:\/\/x.nest.land\/functional\@${RELEASE_VERSION}/" | tee ./README.md > /dev/null
16
+ - run : |
17
+ git config --local user.email "[email protected] "
18
+ git config --local user.name "GitHub Action"
19
+ git add .
20
+ git commit --amend --no-edit
21
+ git push https://${{ env.GITHUB_ACTOR }}:${{ secrets.GITHUB_TOKEN }}@github.com/sebastienfilion/functional.git HEAD:master --force
13
22
publish-egg :
14
23
runs-on : ubuntu-latest
15
24
steps :
16
25
- uses : actions/checkout@v2
17
26
- uses : denolib/setup-deno@master
18
27
with :
19
28
deno-version : 1.4.2
29
+ - run : echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/tags/*}
20
30
-
run :
deno install -A -f --unstable -n eggs https://x.nest.land/[email protected] /mod.ts
21
31
- run : >
22
32
export PATH="/home/runner/.deno/bin:$PATH"
23
33
&& eggs link ${{ secrets.NESTAPIKEY }}
24
34
&& eggs publish functional
25
35
--description "Common Functional Programming Algebraic data types for JavaScript that is compatible with most modern browsers and Deno."
26
- --version {{ INPUT_VERSION }}
36
+ --version $ {{ env.RELEASE_VERSION }}
27
37
--entry ./mod.js
28
- --files ./* ./.github/README.md
38
+ --files ./README.md ./mod.js ./mod.ts ./library/**/*
29
39
--no-check-all
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments