Skip to content

Commit

Permalink
feat: 调整发布流顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1ny committed Aug 26, 2023
1 parent 48d0f9b commit 712dc07
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,29 @@ jobs:
- name: Update version number
run: |
node scripts/version.js ${{ steps.get_version.outputs.VERSION }}
- name: Publish create-creta
run: |
cd src/cli
npm publish
cd ../..
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: PrePublish creta -- Install Mingw-W64 dependencies
run: |
rustup target add x86_64-pc-windows-gnu
brew install mingw-w64
- name: PrePublish creta -- Compile Creta Updater
run: |
cd src/creta/creta-updater
cargo build --release
cargo build --release --target x86_64-pc-windows-gnu
- name: Publish creta
run: |
cd src/creta
npm publish
cd ../..
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish create-creta
run: |
cd src/cli
npm publish
cd ../..
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -69,4 +74,4 @@ jobs:
draft: false
prerelease: false
env:
GITHUB_REPOSITORY: ch1ny/github-actions-test
GITHUB_REPOSITORY: ch1ny/creta
6 changes: 0 additions & 6 deletions src/creta/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ gulp.task('tsc-plug', function () {
});

gulp.task('rust-updater-darwin', function () {
cp.execSync('cargo build --release', {
cwd: path.resolve(__dirname, 'creta-updater'),
});
const outDir = path.resolve(__dirname, 'bin', 'exe');
const updaterDir = path.resolve(__dirname, 'creta-updater');

Expand All @@ -37,9 +34,6 @@ gulp.task('rust-updater-darwin', function () {
});

gulp.task('rust-updater-windows', function () {
cp.execSync('cargo build --release --target x86_64-pc-windows-gnu', {
cwd: path.resolve(__dirname, 'creta-updater'),
});
const outDir = path.resolve(__dirname, 'bin', 'exe');
const updaterDir = path.resolve(__dirname, 'creta-updater');

Expand Down

0 comments on commit 712dc07

Please sign in to comment.