We can integrate this channel with the Slack App "Incoming WebHooks"
What is Incoming WebHooks
Incoming Webhooks are a simple way to post messages from external sources into Slack.
This Incoming Webhook URL is used by GitHub Actions to send messages on Slack channel
To do this
Go to your workspace. (Spec India)
Select the slack channel (#flutter-cicd)
Select the arrow on the side of the channel name
Select "integrations" on the menu
Search for and select “Incoming WebHooks”
Select "Add to Slack"
Select the target channel
Generate Webhook URL
Copy it and store in GitHub repo Actions name like SLACK_WEBHOOK_URL
Update .yml file
name: Flutter CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
messageSlack:
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: flutter-cicd
SLACK_TITLE: Post title
SLACK_USERNAME: nrup.parikh
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_MESSAGE: "New release app available."
Setting Secret variable in GitHub for IOS
BUILD_CERTIFICATE_BASE64
This likely refers to the base64-encoded representation of your Apple Developer certificate.
You can obtain this by base64 encoding your certificate file.
On your local machine, you can use the following command to base64 encode your certificate:
base64 -i path/to/your/certificate.p12
Take the output and set it as the secret BUILD_CERTIFICATE_BASE64 in your GitHub repository.
P12_PASSWORD
This is the password for your .p12 file, which is usually set during the export process.
It's the same password you would use to unlock the .p12 file.
Set the password as the secret P12_PASSWORD in your GitHub repository.
BUILD_PROVISION_PROFILE_BASE64
Similar to the certificate, this likely refers to the base64-encoded representation of your provisioning profile.
You can obtain this by base64 encoding your provisioning profile file.
On your local machine, you can use the following command