Skip to content

Commit

Permalink
Fix: Correct line endings in GitHub Actions YML
Browse files Browse the repository at this point in the history
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
PxaMMaxP committed May 20, 2024
1 parent 8f91f76 commit 35a2ae6
Showing 1 changed file with 61 additions and 61 deletions.
122 changes: 61 additions & 61 deletions .github/workflows/CreateRelease.yml
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

0 comments on commit 35a2ae6

Please sign in to comment.