Skip to content

Commit

Permalink
chore: uncomment forgotten release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Nov 12, 2023
1 parent 1174f82 commit 93cb05a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 31 deletions.
52 changes: 25 additions & 27 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,30 +59,28 @@ jobs:
built-*/*.snap
built-*/*.blockmap
tauri-release/*
# Commented out just for test releases
# publish-to-homebrew-cask:
# name: Publish to Homebrew Cask
# needs:
# - publish
# - release-please
# runs-on: macos-latest
# steps:
# - uses: Homebrew/actions/bump-packages@master
# with:
# casks: pomatez
# token: ${{ secrets.GITHUB_TOKEN }}
# publish-to-winget:
# name: Publish to WinGet
# needs:
# - publish
# - release-please
# runs-on: windows-latest
# steps:
# - uses: vedantmgoyal2009/winget-releaser@v2
# with:
# identifier: Zidoro.Pomatez
# installers-regex: 'setup\.exe$'
# max-versions-to-keep: 5 # keep only latest 5 versions
# release-tag: ${{ needs.release-please.outputs.tag }}
# token: ${{ secrets.GITHUB_TOKEN }}
publish-to-homebrew-cask:
name: Publish to Homebrew Cask
needs:
- publish
- release-please
runs-on: macos-latest
steps:
- uses: Homebrew/actions/bump-packages@master
with:
casks: pomatez
token: ${{ secrets.GITHUB_TOKEN }}
publish-to-winget:
name: Publish to WinGet
needs:
- publish
- release-please
runs-on: windows-latest
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: Zidoro.Pomatez
installers-regex: 'setup\.exe$'
max-versions-to-keep: 5 # keep only latest 5 versions
release-tag: ${{ needs.release-please.outputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ repos:
rev: "" # Use the sha or tag you want to point at
hooks:
- id: prettier
exclude: ^CHANGELOG\.md$
7 changes: 3 additions & 4 deletions app/renderer/src/contexts/connectors/TauriConnector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ export const TauriConnectorProvider: React.FC = ({ children }) => {

const timer = useSelector((state: AppStateTypes) => state.timer);

const { count, duration, timerType, shouldFullscreen } = useContext(
CounterContext
);
const { count, duration, timerType, shouldFullscreen } =
useContext(CounterContext);
const dashOffset = (duration - count) * (24 / duration);

const onMinimizeCallback = useCallback(() => {
Expand Down Expand Up @@ -175,7 +174,7 @@ export const TauriConnectorProvider: React.FC = ({ children }) => {
const img = new Image();
img.src = svgXML;

img.onload = function() {
img.onload = function () {
ctx?.drawImage(img, 0, 0);
const dataUrl = canvas.toDataURL("image/png");

Expand Down

0 comments on commit 93cb05a

Please sign in to comment.