-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Correct line endings in GitHub Actions YML
This commit rectifies line ending inconsistencies in the GitHub Actions for creating releases. These changes should not impact the function of the Actions but are important for maintaining clean and consistent code standards across the repository. This addresses a minor formatting issue, making the code more readable and manageable. No associated issue reference.
- Loading branch information
Showing
1 changed file
with
61 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'package.json' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20.8.0' | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Build the Project | ||
run: npm run build:patch | ||
|
||
- name: Get the version | ||
id: get_version | ||
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV | ||
|
||
- name: Copy Files to docs | ||
run: npm run copy-release | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email 'github-actions@github.com' | ||
git add docs | ||
git commit -m "Update docs for version ${{ env.VERSION }}" | ||
git push origin main | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ env.VERSION }} | ||
release_name: Release ${{ env.VERSION }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset ZIP | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./release/Bionic_Reading_Epub_Converter_WebApp_v${{ env.VERSION }}.zip | ||
asset_name: Bionic_Reading_Epub_Converter_WebApp_v${{ env.VERSION }}.zip | ||
asset_content_type: application/zip | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'package.json' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20.8.0' | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Build the Project | ||
run: npm run build:patch | ||
|
||
- name: Get the version | ||
id: get_version | ||
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV | ||
|
||
- name: Copy Files to docs | ||
run: npm run copy-release | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email 'github-actions@github.com' | ||
git add docs | ||
git commit -m "Update docs for version ${{ env.VERSION }}" | ||
git push origin main | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ env.VERSION }} | ||
release_name: Release ${{ env.VERSION }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset ZIP | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./release/Bionic_Reading_Epub_Converter_WebApp_v${{ env.VERSION }}.zip | ||
asset_name: Bionic_Reading_Epub_Converter_WebApp_v${{ env.VERSION }}.zip | ||
asset_content_type: application/zip |