Skip to content

Commit

Permalink
Fixed the GitHub Actions workflow to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Jan 16, 2022
1 parent abb02ce commit 616fb42
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 21 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,31 @@ name: Publish
on:
release:
types: published
workflow_dispatch:

jobs:
publish-packages:
publish-wheel:
runs-on: ubuntu-latest
steps:
- run: |
VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\/v//')
echo "VERSION=${VERSION}" >> $GITHUB_ENV
# - uses: peter-evans/repository-dispatch@v1
# with:
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# repository: kitao/homebrew-pyxel
# event-type: update
# client-payload: '{"version": "${{ env.VERSION }}"}'
# - run: |
# pip3 install twine
# wget https://github.com/kitao/pyxel/releases/download/v${{ env.VERSION }}/pyxel-${{ env.VERSION }}-py3-none-any.whl
# twine upload *.whl
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
repository: kitao/homebrew-pyxel
event-type: update
client-payload: '{"version": "${{ env.VERSION }}"}'
- run: |
pip3 install twine
wget https://github.com/kitao/pyxel/releases/download/v${{ env.VERSION }}/pyxel-${{ env.VERSION }}-py3-none-any.whl
twine upload *.whl
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
publish-crates:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: |
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## 1.6.5
- Fixed the GitHub Actions workflow to publish

## 1.6.4
- Fixed the GitHub Actions workflow to publish

Expand Down
2 changes: 1 addition & 1 deletion lib/engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyxel-engine"
version = "1.6.4"
version = "1.6.5"
authors = ["Takashi Kitao <takashi.kitao@gmail.com>"]
edition = "2021"
description = "Core engine for Pyxel, a retro game engine for Python"
Expand Down
2 changes: 1 addition & 1 deletion lib/engine/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::key::KEY_ESCAPE;
use crate::types::{Color, Effect, Key, Note, Rgb8, Speed, Tone, Volume};

// System
pub const PYXEL_VERSION: &str = "1.6.4";
pub const PYXEL_VERSION: &str = "1.6.5";
pub const DEFAULT_TITLE: &str = "Pyxel";
pub const DEFAULT_FPS: u32 = 30;
pub const DEFAULT_QUIT_KEY: Key = KEY_ESCAPE;
Expand Down
2 changes: 1 addition & 1 deletion lib/setup.iss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PyxelVersion "1.6.4"
#define PyxelVersion "1.6.5"

[Setup]
AppName=Pyxel
Expand Down
4 changes: 2 additions & 2 deletions lib/wrapper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyxel-wrapper"
version = "1.6.4"
version = "1.6.5"
authors = ["Takashi Kitao <takashi.kitao@gmail.com>"]
edition = "2021"
description = "Python wrapper for Pyxel, a retro game engine for Python"
Expand All @@ -15,4 +15,4 @@ crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.15.1", features = ["abi3-py37", "extension-module"] }
pyxel-engine = { path = "../engine", version="1.6.4" }
pyxel-engine = { path = "../engine", version="1.6.5" }
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setuptools.setup(
name="pyxel",
version="1.6.4",
version="1.6.5",
description="A retro game engine for Python",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 616fb42

Please sign in to comment.