Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
NayamAmarshe committed Jan 18, 2024
2 parents c1036fe + 482a339 commit b7b3052
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy to GitHub Pages
on:
push:
branches: 'main'
workflow_dispatch:

jobs:
build_site:
Expand All @@ -26,6 +27,31 @@ jobs:
- name: Install dependencies
run: npm install

- name: Get latest release version
id: get-version
run: |
latest_version=$(curl -s https://api.github.com/repos/upscayl/upscayl/releases/latest | jq -r .name)
echo "Latest version is $latest_version"
echo "::set-output name=version::$latest_version"
- name: Update version in file
run: echo "export const UPSCAYL_VERSION = '$(echo ${{ steps.get-version.outputs.version }})';" > src/lib/constants/upscayl-version.ts

- name: Commit changes
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add src/lib/constants/upscayl-version.ts
git commit -m "Update Upscayl version to ${{ steps.get-version.outputs.version }}"
- name: Push changes
uses: ad-m/github-push-action@v0.8.0
with:
branch: ${{ github.ref }}
force: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: build
env:
BASE_PATH: ''
Expand Down
5 changes: 5 additions & 0 deletions src/lib/components/DownloadSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@
target="_blank"
rel="noreferrer noopener">EXE Installer</a
>
<a
href={`https://github.com/upscayl/upscayl/releases/download/v${UPSCAYL_VERSION}/upscayl-${UPSCAYL_VERSION}-win.zip`}
target="_blank"
rel="noreferrer noopener">Portable ZIP</a
>
<!-- <a href="#" target="_blank" rel="noreferrer noopener">Microsoft Store (Coming Soon...)</a> -->
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants/upscayl-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const UPSCAYL_VERSION = '2.9.5';
export const UPSCAYL_VERSION = '2.9.8';

0 comments on commit b7b3052

Please sign in to comment.