Skip to content

Commit

Permalink
Fix CI/CD publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
tmattio committed Mar 9, 2020
1 parent fb21a2c commit 322115f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
- name: Fetch git tags
run: git fetch --tags --force

- name: Print git describe
run: |
tag=$(git describe --always --dirty)
echo "${tag}"
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -61,9 +56,6 @@ jobs:
- name: Substitute watermarks
run: esy dune subst

- name: cat package.json
run: cat scripts/release-make-skeleton.js

- name: Build subst changes
run: esy dune build

Expand Down Expand Up @@ -95,6 +87,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Fetch git tags
run: git fetch --tags --force

- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ if [ -d ".git" ]; then
esy x dune-release tag
esy x dune-release distrib --skip-tests
esy x dune-release publish distrib -y
# esy x dune-release opam pkg
# esy x dune-release opam submit --no-auto-open -y
esy x dune-release opam pkg
esy x dune-release opam submit --no-auto-open -y
fi
else
echo "This project is not a git repository. Run `git init` first to be able to release."
Expand Down

0 comments on commit 322115f

Please sign in to comment.